frontend.cpp: 4505 and 4506 use the same snrdb calculation
authorghost <andreas.monzner@multimedia-labs.de>
Thu, 10 Sep 2009 13:32:54 +0000 (15:32 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Thu, 10 Sep 2009 13:32:54 +0000 (15:32 +0200)
lib/dvb/frontend.cpp

index 10e89453069132daaa95776be3904ae8219e60d3..15a46db83b66ed2139301c4987be154d75e819a2 100644 (file)
@@ -860,7 +860,7 @@ int eDVBFrontend::readFrontendData(int type)
                                if (snr != 0)
                                        ret = 10 * (int)(-100 * (log10(snr) - log10(255)));
                        }
-                       else if (!strcmp(m_description, "BCM4506"))
+                       else if (strstr(m_description, "BCM4506") || strstr(m_description, "BCM4505"))
                                ret = (snr * 100) >> 8;
 
                        if (type == signalQuality)