diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-03-16 15:30:12 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-03-16 15:30:12 +0100 |
commit | 4477a0171ede68ee32645573b97f598d825b7874 (patch) | |
tree | 46310d52ddfc7d47cf359bdcb6afd6b0a6ddfa9f /dvbdevice.c | |
parent | a033ebf167c0f8e444456422533bf051707dc162 (diff) | |
download | vdr-4477a0171ede68ee32645573b97f598d825b7874.tar.gz vdr-4477a0171ede68ee32645573b97f598d825b7874.tar.bz2 |
Added maximum SNR and signal strength value for TechniSat SkyStar HD2
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 1fba1661..ab6149f2 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 2.87 2013/03/13 11:23:53 kls Exp $ + * $Id: dvbdevice.c 2.88 2013/03/16 15:23:35 kls Exp $ */ #include "dvbdevice.h" @@ -549,7 +549,9 @@ int cDvbTuner::GetSignalStrength(void) const // Use the subsystemId to identify individual devices in case they need // special treatment to map their Signal value into the range 0...0xFFFF. switch (subsystemId) { - case 0x13C21019: MaxSignal = 670; break; // TT-budget S2-3200 (DVB-S/DVB-S2) + case 0x13C21019: // TT-budget S2-3200 (DVB-S/DVB-S2) + case 0x1AE40001: // TechniSat SkyStar HD2 (DVB-S/DVB-S2) + MaxSignal = 670; break; } int s = int(Signal) * 100 / MaxSignal; if (s > 100) @@ -628,15 +630,18 @@ int cDvbTuner::GetSignalQuality(void) const // Use the subsystemId to identify individual devices in case they need // special treatment to map their Snr value into the range 0...0xFFFF. switch (subsystemId) { - case 0x13C21019: if (frontendType == SYS_DVBS2) { // TT-budget S2-3200 (DVB-S/DVB-S2) + case 0x13C21019: // TT-budget S2-3200 (DVB-S/DVB-S2) + case 0x1AE40001: // TechniSat SkyStar HD2 (DVB-S/DVB-S2) + if (frontendType == SYS_DVBS2) { MinSnr = 10; MaxSnr = 70; } else MaxSnr = 200; break; - case 0x20130245: // PCTV Systems PCTV 73ESE - case 0x2013024F: MaxSnr = 255; break; // PCTV Systems nanoStick T2 290e + case 0x20130245: // PCTV Systems PCTV 73ESE + case 0x2013024F: // PCTV Systems nanoStick T2 290e + MaxSnr = 255; break; } int a = int(constrain(Snr, MinSnr, MaxSnr)) * 100 / (MaxSnr - MinSnr); int b = 100 - (Unc * 10 + (Ber / 256) * 5); |