diff options
Diffstat (limited to 'linux')
-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) |