From: Bradley Kite Date: Sun, 3 Sep 2006 00:14:27 +0000 (-0300) Subject: V4L/DVB (4600): Fix DVB Front-End Signal Strength Inconsistency X-Git-Tag: firefly_0821_release~33017^2~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1e9dadbe7a0afa0c3eeae538164d8b9d489d3cc0;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Andrew de Quincey Signed-off-by: Mauro Carvalho Chehab --- 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; }