OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b84325
)
[media] zl10353: change .read_snr() to report SNR as a 0.1 dB
author
Antti Palosaari
<crope@iki.fi>
Tue, 15 May 2012 22:48:40 +0000
(19:48 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 20 May 2012 15:19:36 +0000
(12:19 -0300)
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>
drivers/media/dvb/frontends/zl10353.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/zl10353.c
b/drivers/media/dvb/frontends/zl10353.c
index
4de3691
..
82946cd
100644
(file)
--- 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)
zl10353_dump_regs(fe);
_snr = zl10353_read_register(state, SNR);
- *snr =
(_snr << 8) | _snr
;
+ *snr =
10 * _snr / 8
;
return 0;
}