]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit02f93e5e163f0405fb2f2c642dbc2d2cd9af266e
tree4aaa8571e432d6d472195d67efe592f7de306076
parent3fd8b9c0183ff5c328dea8da2006fccbdd79ccbf
[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