diff options
author | Holger Waechtler <devnull@localhost> | 2002-11-18 15:57:06 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-11-18 15:57:06 +0000 |
commit | 1f77e959ed3a552b59017f11e12763f236d207a9 (patch) | |
tree | e264a7252443bc2625c7d7fdfda30ba213d5cd76 /linux | |
parent | c3777937062139fe402f99f773d069b9590be6e1 (diff) | |
download | mediapointer-dvb-s2-1f77e959ed3a552b59017f11e12763f236d207a9.tar.gz mediapointer-dvb-s2-1f77e959ed3a552b59017f11e12763f236d207a9.tar.bz2 |
some stv0299 report bogus device id's after soft reboot, so we'll accept
those too...
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/alps_bsru6.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |