diff options
author | Antti Palosaari <crope@iki.fi> | 2012-05-15 18:48:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-20 11:19:36 -0400 |
commit | 13c6a9f706d21fa02495f31b3bbd3ae4d42d108f (patch) | |
tree | c108036b651d3cfb3befd09e62cd8af324f9e8f2 /drivers/media/dvb/frontends/zl10353.c | |
parent | 5b84325a314d5d1008e1fe59e5d74d99b5b7768b (diff) |
[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>
Diffstat (limited to 'drivers/media/dvb/frontends/zl10353.c')
-rw-r--r-- | drivers/media/dvb/frontends/zl10353.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c index 4de3691610bc..82946cd517f5 100644 --- a/drivers/media/dvb/frontends/zl10353.c +++ b/drivers/media/dvb/frontends/zl10353.c | |||
@@ -525,7 +525,7 @@ static int zl10353_read_snr(struct dvb_frontend *fe, u16 *snr) | |||
525 | zl10353_dump_regs(fe); | 525 | zl10353_dump_regs(fe); |
526 | 526 | ||
527 | _snr = zl10353_read_register(state, SNR); | 527 | _snr = zl10353_read_register(state, SNR); |
528 | *snr = (_snr << 8) | _snr; | 528 | *snr = 10 * _snr / 8; |
529 | 529 | ||
530 | return 0; | 530 | return 0; |
531 | } | 531 | } |