summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2002-10-21 16:00:47 +0000
committerHolger Waechtler <devnull@localhost>2002-10-21 16:00:47 +0000
commit8712ff94f4d39fecfd4a93b8bdc87a1f3e783dc0 (patch)
tree8721ad7079960c0fa5342bf8960cd382c6af61be /linux/drivers/media
parent95b4bd29c909c908e087f2dc634016c68e96e74c (diff)
downloadmediapointer-dvb-s2-8712ff94f4d39fecfd4a93b8bdc87a1f3e783dc0.tar.gz
mediapointer-dvb-s2-8712ff94f4d39fecfd4a93b8bdc87a1f3e783dc0.tar.bz2
follow HEAD changes
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdmb7.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
index 6303b8a29..6ba1f7045 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
@@ -359,15 +359,15 @@ int tdmb7_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg)
case FE_READ_SIGNAL_STRENGTH:
{
- u8 ber = cx22700_readreg (i2c, 0x0c) & 0x7f;
- ber *= 2;
- *((uint16_t*) arg) = ~((ber << 8) | ber);
+ u16 rs_ber = (cx22700_readreg (i2c, 0x0d) << 9)
+ | (cx22700_readreg (i2c, 0x0e) << 1);
+ *((uint16_t*) arg) = ~rs_ber;
break;
}
case FE_READ_SNR:
{
- u16 rs_ber = (cx22700_readreg (i2c, 0x0d) & 0x7f)
- | cx22700_readreg (i2c, 0x0e);
+ u16 rs_ber = (cx22700_readreg (i2c, 0x0d) << 9)
+ | (cx22700_readreg (i2c, 0x0e) << 1);
*((uint16_t*) arg) = ~rs_ber;
break;
}