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>
This commit is contained in:
Bradley Kite 2006-09-02 21:14:27 -03:00 committed by Mauro Carvalho Chehab
parent 81409ed08a
commit 1e9dadbe7a
1 changed files with 3 additions and 1 deletions

View 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;
}