From 1f77e959ed3a552b59017f11e12763f236d207a9 Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Mon, 18 Nov 2002 15:57:06 +0000 Subject: some stv0299 report bogus device id's after soft reboot, so we'll accept those too... --- linux/drivers/media/dvb/frontends/alps_bsru6.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb') diff --git a/linux/drivers/media/dvb/frontends/alps_bsru6.c b/linux/drivers/media/dvb/frontends/alps_bsru6.c index 67e6520f7..aa4198afd 100644 --- a/linux/drivers/media/dvb/frontends/alps_bsru6.c +++ b/linux/drivers/media/dvb/frontends/alps_bsru6.c @@ -696,9 +696,11 @@ int bsru6_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) static int bsru6_attach (struct dvb_i2c_bus *i2c) { + u8 id = stv0299_readreg (i2c, 0x00); + dprintk ("%s\n", __FUNCTION__); - if ((stv0299_readreg (i2c, 0x00)) != 0xa1) + if (id != 0xa1 && id != 0x80) return -ENODEV; dvb_register_frontend (bsru6_ioctl, i2c, NULL, &bsru6_info); -- cgit v1.2.3