Commit 1e9dadbe authored by Bradley Kite's avatar Bradley Kite Committed by Mauro Carvalho Chehab

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: default avatarBradley Derek Kite <bradley.kite@gmail.com>
Signed-off-by: default avatarAndrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 81409ed0
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment