summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorBradley Kite <bradley.kite@gmail.com>2006-09-03 04:14:27 +0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 19:30:35 +0400
commit1e9dadbe7a0afa0c3eeae538164d8b9d489d3cc0 (patch)
tree19fc613624df1fff611b08ea82e31d6649e0ab3f /drivers/media
parent81409ed08a7ecc6a3da08b9b0321fd070c57a721 (diff)
downloadlinux-1e9dadbe7a0afa0c3eeae538164d8b9d489d3cc0.tar.xz
V4L/DVB (4600): Fix DVB Front-End Signal Strength Inconsistency
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/frontends/cx22702.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/cx22702.c b/drivers/media/dvb/frontends/cx22702.c
index 4106d46c957f..335219ebce2d 100644
--- a/drivers/media/dvb/frontends/cx22702.c
+++ b/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;
}