Skip to content

Commit

Permalink
frontend: dB calculation for Xsarius internal DVB-S tuner.
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksl committed Jun 18, 2016
1 parent 53562a4 commit 2fa1dc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dvb/frontend.cpp
Expand Up @@ -975,6 +975,10 @@ void eDVBFrontend::calculateSignalQuality(int snr, int &signalquality, int &sign
{
ret = (int)((((double(snr) / (65536.0 / 100.0)) * 0.1850) - 0.3500) * 100);
}
else if (!strcmp(m_description, "BCM7362 (internal) DVB-S2")) // Xsarius
{
ret = (int)((((double(snr) / (65536.0 / 100.0)) * 0.28) - 10.0) * 100);
}
else if (!strcmp(m_description, "Genpix"))
{
ret = (int)((snr << 1) / 5);
Expand Down

0 comments on commit 2fa1dc5

Please sign in to comment.