提交 13c6a9f7 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[media] zl10353: change .read_snr() to report SNR as a 0.1 dB

Report SNR in 0.1 dB scale instead of raw hardware register values.
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 5b84325a
......@@ -525,7 +525,7 @@ static int zl10353_read_snr(struct dvb_frontend *fe, u16 *snr)
zl10353_dump_regs(fe);
_snr = zl10353_read_register(state, SNR);
*snr = (_snr << 8) | _snr;
*snr = 10 * _snr / 8;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册