diff options
author | Holger Waechtler <devnull@localhost> | 2002-10-24 09:52:39 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-10-24 09:52:39 +0000 |
commit | 414d11591555c94ae972697c1fba5753110a9d68 (patch) | |
tree | 588f35ba570bfdc773655cf793ec1de995329fcf /linux/drivers/media/dvb/frontends/ves1820.c | |
parent | 0213454f4683cc1e7e8788148ae87cd693e0cdc5 (diff) | |
download | mediapointer-dvb-s2-414d11591555c94ae972697c1fba5753110a9d68.tar.gz mediapointer-dvb-s2-414d11591555c94ae972697c1fba5753110a9d68.tar.bz2 |
BER fixes by obi
Diffstat (limited to 'linux/drivers/media/dvb/frontends/ves1820.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/ves1820.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/ves1820.c b/linux/drivers/media/dvb/frontends/ves1820.c index 196de7809..7f759af1f 100644 --- a/linux/drivers/media/dvb/frontends/ves1820.c +++ b/linux/drivers/media/dvb/frontends/ves1820.c @@ -433,12 +433,13 @@ int ves1820_ioctl (struct dvb_frontend *frontend, unsigned int cmd, void *arg) } case FE_READ_BER: - *((u32*) arg) = ves1820_readreg(frontend->i2c, 0x14) | - (ves1820_readreg(frontend->i2c, 0x15) << 8) | - (ves1820_readreg(frontend->i2c, 0x16) << 16); - /* XXX FIXME: scale!!*/ + { + u32 ber = ves1820_readreg(frontend->i2c, 0x14) | + (ves1820_readreg(frontend->i2c, 0x15) << 8) | + ((ves1820_readreg(frontend->i2c, 0x16) & 0x0f) << 16); + *((u32*) arg) = 10 * ber; break; - + } case FE_READ_SIGNAL_STRENGTH: { u8 gain = ves1820_readreg(frontend->i2c, 0x17); |