From 237e3bcd7bccd782cae45ae1cc20a5b5afd9518f Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Mon, 21 Oct 2002 16:23:36 +0000 Subject: fix FE_HAS_SIGNAL bit --- linux/drivers/media/dvb/frontends/alps_tdmb7.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb') 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) -- cgit v1.2.3