Skip to content

Commit

Permalink
[media] zl10353: change .read_snr() to report SNR as a 0.1 dB
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed May 20, 2012
1 parent 5b84325 commit 13c6a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/zl10353.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 13c6a9f

Please sign in to comment.