media: dvb-frontends/stv0910: Add demod-only signal strength reporting
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 3 Jul 2017 17:20:57 +0000 (13:20 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 20 Jul 2017 16:59:50 +0000 (12:59 -0400)
commit19bb3b718f02ff2fa38e3222cf62c9c3f46d2527
tree2684225a26d76a8e6a2c8d6639691e05ae8d7e27
parentea71c62bdef59004a2fd835545cd02bbeb699f83
media: dvb-frontends/stv0910: Add demod-only signal strength reporting

Original code at least has some signed/unsigned issues, resulting in
values like 32dBm. Implement signal strength readout to work without
asking the attached tuner, and use a lookup table instead of log calc.
Values reported appear plausible, gathered from feedback from several
testers.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <r.scobie@clear.net.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0910.c