From: Trent Piepho Date: Sun, 29 Oct 2006 16:35:39 +0000 (-0300) Subject: V4L/DVB (4789): Lgdt330x: SNR and signal strength reporting X-Git-Tag: v2.6.20-rc1~145^2~5^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19be685a4a5475ecdbbbb579458eeda890d27a96;p=pandora-kernel.git 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 Signed-off-by: Rusty Scott Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed