Correct the wrong SNR calculation for DVB-S2.
Test:
SPACECAST2# dvbsnoop -s signal
dvbsnoop V1.4.50 -- http://dvbsnoop.sourceforge.net/
---------------------------------------------------------
Transponder/Frequency signal strength statistics...
---------------------------------------------------------
cycle: 1 d_time: 0.001 s Sig: 31 SNR: 19 BER: 4009 UBLK: 0 Stat:
0x1f [SIG CARR VIT SYNC LOCK ]
Google-Bug-Id: 19432272
Change-Id: I38b0d0b065a2f1a48fdd59a7c00fc13e71e88012
diff --git a/drivers/media/dvb/frontends/dvbsky_m88rs6000.c b/drivers/media/dvb/frontends/dvbsky_m88rs6000.c
index d3fbdcc..73f64fd 100644
--- a/drivers/media/dvb/frontends/dvbsky_m88rs6000.c
+++ b/drivers/media/dvb/frontends/dvbsky_m88rs6000.c
@@ -543,7 +543,7 @@
if(spow > npow){
tmp = (u16)(spow / npow);
if (tmp > 80) tmp = 80;
- snr = mes_log10[tmp - 1]*3;
+ snr = mes_log10[tmp - 1] / 1000;
}else{
tmp = (u16)(npow / spow);
if (tmp > 80) tmp = 80;