diff options
author | Holger Waechtler <devnull@localhost> | 2002-10-21 16:23:36 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-10-21 16:23:36 +0000 |
commit | 237e3bcd7bccd782cae45ae1cc20a5b5afd9518f (patch) | |
tree | f6cb39e047a143f84bfd015f6ba72f42bed3efed /linux/drivers/media/dvb | |
parent | 8712ff94f4d39fecfd4a93b8bdc87a1f3e783dc0 (diff) | |
download | mediapointer-dvb-s2-237e3bcd7bccd782cae45ae1cc20a5b5afd9518f.tar.gz mediapointer-dvb-s2-237e3bcd7bccd782cae45ae1cc20a5b5afd9518f.tar.bz2 |
fix FE_HAS_SIGNAL bit
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/frontends/alps_tdmb7.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c index 6ba1f7045..ddc5e8186 100644 --- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c +++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c @@ -330,12 +330,13 @@ int tdmb7_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) case FE_READ_STATUS: { fe_status_t *status = (fe_status_t *) arg; - u8 ber = 2 * (cx22700_readreg (i2c, 0x0c) & 0x7f); + u16 rs_ber = (cx22700_readreg (i2c, 0x0d) << 9) + | (cx22700_readreg (i2c, 0x0e) << 1); u8 sync = cx22700_readreg (i2c, 0x07); *status = 0; - if (ber < 40) + if (rs_ber < 0xff00) *status |= FE_HAS_SIGNAL; if (sync & 0x20) |