From: ghost Date: Sun, 15 Mar 2009 09:19:41 +0000 (+0100) Subject: add caluclation for bcm4506 based frontends X-Git-Tag: 2.6.0~376 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/0d6533c82c3703b19af8afabe1121db1d9848a60 add caluclation for bcm4506 based frontends --- diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index 5df17931..f2fc12b3 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -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) {