V4L/DVB (4789): Lgdt330x: SNR and signal strength reporting
commit19be685a4a5475ecdbbbb579458eeda890d27a96
authorTrent Piepho <xyzzy@speakeasy.org>
Sun, 29 Oct 2006 16:35:39 +0000 (29 13:35 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Dec 2006 10:51:09 +0000 (10 08:51 -0200)
tree192c6c2fbeb1c3eea1561cef209cbc7226205a12
parentdbb2e6392b4fe350e549cdc2d42cebf3b3574a6a
V4L/DVB (4789): Lgdt330x: SNR and signal strength reporting

Update the SNR calculations to use the new dvb_math log function, and add
SNR calculations for all supported modulations for both lg dt3302 and dt3303.
The QAM equations don't appear in the dt3302 datasheet, so the ones from the
dt3303 datasheet were used.
SNR returned is the actual value in dB as 8.8 fixed point.
Reporting of real signal strength isn't supported, so rather than return 0,
which confuses some software and users, a re-scaled SNR value is returned.
Code originally by Rusty Scott.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Rusty Scott <rustys@ieee.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/lgdt330x.c
drivers/media/dvb/frontends/lgdt330x_priv.h