提交 1e9dadbe 编写于 作者: B Bradley Kite 提交者: 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: NBradley Derek Kite <bradley.kite@gmail.com>
Signed-off-by: NAndrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册