diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-09-03 01:14:27 +0100 |
---|---|---|
committer | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-09-03 01:14:27 +0100 |
commit | dd67c05c0fb5d9463ff8b277a69fe333a852abd6 (patch) | |
tree | c07e0db7c136c251fb16e877dd780a2565e64836 /linux | |
parent | 4bfa4fa781eda2c15066a2c171786d43fdc62d4f (diff) | |
download | mediapointer-dvb-s2-dd67c05c0fb5d9463ff8b277a69fe333a852abd6.tar.gz mediapointer-dvb-s2-dd67c05c0fb5d9463ff8b277a69fe333a852abd6.tar.bz2 |
Fix DVB Front-End Signal Strength Inconsistency
From: "Bradley Kite" <bradley.kite@gmail.com>
The cx22702 returns an 8 bit unshifted value for signal strength; this is
inconsistent with most other frontends
Signed-off-by: Bradley Derek Kite <bradley.kite@gmail.com>
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/cx22702.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx22702.c b/linux/drivers/media/dvb/frontends/cx22702.c index 4106d46c9..335219ebc 100644 --- a/linux/drivers/media/dvb/frontends/cx22702.c +++ b/linux/drivers/media/dvb/frontends/cx22702.c @@ -399,7 +399,9 @@ static int cx22702_read_signal_strength(struct dvb_frontend* fe, u16* signal_str { struct cx22702_state* state = fe->demodulator_priv; - *signal_strength = cx22702_readreg (state, 0x23); + u16 rs_ber = 0; + rs_ber = cx22702_readreg (state, 0x23); + *signal_strength = (rs_ber << 8) | rs_ber; return 0; } |