]> git.karo-electronics.de Git - linux-beck.git/commit
[media] af9033: fix AF9033 DVBv3 signal strength measurement
authorAntti Palosaari <crope@iki.fi>
Mon, 3 Nov 2014 23:24:13 +0000 (20:24 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 4 Nov 2014 20:19:27 +0000 (18:19 -0200)
commit0b0d96281f6d59280094b240ca5046b317ade614
tree7e74aff9fb8f72249d98d5d787831301b120397c
parent3adec272425f6bb72375436b9dd67b0f5a7f7eef
[media] af9033: fix AF9033 DVBv3 signal strength measurement

Previous patch changes used signal strength firmware register from
0x800048 to 0x80004a in case of AF9033/AF9035 chip. In practice
reported values were running upside-down, when RR strength increases
reported value decreases and vice versa. That is because of 0x80004a
returns values that are dBm scale, but negative RF strength dBm
returned as positive number.

0x800048 returns 0-100, like percentage
0x80004a returns 0-255 dBm, without a negative sign

So restore old measurement now.

Cc: Bimow Chen <Bimow.Chen@ite.com.tw>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/af9033.c