add caluclation for bcm4506 based frontends
authorghost <andreas.monzner@multimedia-labs.de>
Sun, 15 Mar 2009 09:19:41 +0000 (10:19 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Sun, 15 Mar 2009 09:19:41 +0000 (10:19 +0100)
lib/dvb/frontend.cpp

index 5df179314eb212377785cbccac8d97873158183d..f2fc12b318889a51c1657a9a9f0b537183e8675e 100644 (file)
@@ -858,6 +858,8 @@ int eDVBFrontend::readFrontendData(int type)
                                if (snr != 0)
                                        ret = 10 * (int)(-100 * (log10(snr) - log10(255)));
                        }
+                       else if (!strcmp(m_description, "BCM4506"))
+                               ret = (snr * 100) >> 8;
 
                        if (type == signalQuality)
                        {