]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (4600): Fix DVB Front-End Signal Strength Inconsistency
authorBradley Kite <bradley.kite@gmail.com>
Sun, 3 Sep 2006 00:14:27 +0000 (21:14 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 26 Sep 2006 15:30:35 +0000 (12:30 -0300)
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>
drivers/media/dvb/frontends/cx22702.c

index 4106d46c957fa2e081c637790dace69827c791c1..335219ebce2d5a5568dc6d815ffe8aaf3ac185c6 100644 (file)
@@ -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;
 }