mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 08:38:24 +08:00
[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: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
5b84325a31
commit
13c6a9f706
@ -525,7 +525,7 @@ static int zl10353_read_snr(struct dvb_frontend *fe, u16 *snr)
|
|||||||
zl10353_dump_regs(fe);
|
zl10353_dump_regs(fe);
|
||||||
|
|
||||||
_snr = zl10353_read_register(state, SNR);
|
_snr = zl10353_read_register(state, SNR);
|
||||||
*snr = (_snr << 8) | _snr;
|
*snr = 10 * _snr / 8;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user