[media] cxd2841er: Fix signal strengh for DVB-T/T2 and show it in dBm
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 30 Jun 2016 22:41:45 +0000 (19:41 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 21:55:14 +0000 (18:55 -0300)
commit5fda1b65c2ecb2acaceb4418c16cfd929ac138b3
tree4aaa8571e432d6d472195d67efe592f7de306076
parentd0e20e13b715da83a9630916d283d63e9c514870
[media] cxd2841er: Fix signal strengh for DVB-T/T2 and show it in dBm

The signal strength value is reversed: the bigger the number,
the weaker is the signal.

Fix the logic and present it in dBm. Please notice that the
dBm measure is actually an estimation, as the ratio is not
fully linear. It also varies with the frequency.

Yet, the estimation should be good enough for programs like
Kaffeine to indicate when the signal is good or bad.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/cxd2841er.c