frontend: correct snr/db value for tuner Sundtek MediaTV Digital Home III (dvb-t...
authorDima73 <Dima-73@inbox.lv>
Sat, 26 Dec 2015 13:00:55 +0000 (15:00 +0200)
committerDima73 <Dima-73@inbox.lv>
Sat, 26 Dec 2015 13:00:55 +0000 (15:00 +0200)
lib/dvb/frontend.cpp

index a9b0513..fdb140c 100644 (file)
@@ -994,6 +994,11 @@ void eDVBFrontend::calculateSignalQuality(int snr, int &signalquality, int &sign
                        default: break;
                }
        }
+       else if (strstr(m_description, "Sundtek DVB-T (III)")) // Sundtek MediaTV Digital Home III...dvb-t/t2 mode
+       {
+               ret = (int)(snr / 75);
+               ter_max = 1700;
+       }
 
        signalqualitydb = ret;
        if (ret == 0x12345678) // no snr db calculation avail.. return untouched snr value..