From patchwork Sun Oct 13 13:55:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "guido.cordaro@tiscali.it" X-Patchwork-Id: 20384 Received: from localhost ([127.0.0.1] helo=www.linuxtv.org) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1VVM92-0006YU-BI; Sun, 13 Oct 2013 15:55:44 +0200 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1VVM8b-0006YH-1J for vdr@linuxtv.org; Sun, 13 Oct 2013 15:55:42 +0200 X-tubIT-Incoming-IP: 213.205.33.246 Received: from michael.mail.tiscali.it ([213.205.33.246]) by mail.tu-berlin.de (exim-4.72/mailfrontend-7) with esmtp for id 1VVM8Z-00044s-2C; Sun, 13 Oct 2013 15:55:16 +0200 Received: from [192.168.1.3] ([78.14.24.48]) by michael.mail.tiscali.it with id cdvE1m00412Fa8E01dvER8; Sun, 13 Oct 2013 15:55:15 +0200 x-auth-user: guido.cordaro@tiscali.it Message-ID: <525AA642.4030202@tiscali.it> Date: Sun, 13 Oct 2013 15:55:14 +0200 From: Guido Cordaro User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: VDR Mailing List References: <525A5F08.9070709@tiscali.it> <525A6119.8060807@tiscali.it> <525A6D8B.2080201@tvdr.de> <525A9546.90002@tiscali.it> <525A99CF.6090309@tvdr.de> In-Reply-To: <525A99CF.6090309@tvdr.de> X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.10.13.134516 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_TEXT_ONLY_MP_MIXED 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, ECARD_WORD 0, __ANY_URI 0, __BAT_BOUNDARY 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_MIXED 0, __FORWARDED_MSG 0, __HAS_FROM 0, __HAS_MSGID 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __MOZILLA_USER_AGENT 0, __SANE_MSGID 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __URI_NS , __USER_AGENT 0' X-LSpam-Score: -1.1 (-) X-LSpam-Report: No, score=-1.1 required=5.0 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RDNS_NONE=0.793, URIBL_BLOCKED=0.001 autolearn=no Subject: Re: [vdr] Fix SIGNALSTRENGTH in vdr 2.0.3 TechniSat SkyStar 2 DVB-S rev 2.3P - dvbdevice.c X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: vdr-bounces@linuxtv.org Errors-To: vdr-bounces@linuxtv.org Sorry Klaus For these mistakes ... I hope that this time the change to the source fits as it should be ... In this way everything remains unchanged on other devices already operating ... Add functionality to the card TechniSat SkyStar 2 DVB -S rev 2.3P Tested by recompiling the sources VDR 2.0.3 ... Everything works ... Guido Cordaro Il 13/10/2013 15:02, Klaus Schmidinger ha scritto: > On 13.10.2013 14:42, Guido Cordaro wrote: >> I understand your position ... and I modified the code again ... >> >> Without another unnecessary code I managed to make work well for the >> Signal Strength as I did with the first patch ... >> >> Tested by recompiling code VDR-2.0.3 >> >> New Patch to Fix Signal Strength in The Netsystem Skystar2 TechniSat >> DVB-S device ... >> >> It does not damage any other device in their operation ... in this >> way ... almost the same as before the source code ... > >> --- /home/knap/Patch/vdr-2.0.3/dvbdevice.c 2013-09-01 >> 23:04:05.000000000 +0200 >> +++ /home/knap/Patch/dvbdevice.c 2013-10-13 14:28:09.257450468 +0200 >> @@ -550,7 +550,7 @@ >> case 0x1AE40001: // TechniSat SkyStar HD2 (DVB-S/DVB-S2) >> MaxSignal = 670; break; >> } >> - int s = int(Signal) * 100 / MaxSignal; >> + int s = int(Signal) * 350 / MaxSignal; // Modified by knap for >> TechniSat SkyStar >> if (s > 100) >> s = 100; >> #ifdef DEBUG_SIGNALSTRENGTH > > Sorry, but it doesn't work that way. > With this modification you would change the scaling for *all* > frontends, not just > the "TechniSat SkyStar". > > The correct way to do this is to find out the "subsystem ID" of the > frontend > you want to adjust, and add the proper 'case' statement to the 'switch' a > few lines above, where you set MaxSignal accordingly. > This could perhaps look like this: > > switch (subsystemId) { > case 0x13C21019: // TT-budget S2-3200 (DVB-S/DVB-S2) > case 0x1AE40001: // TechniSat SkyStar HD2 (DVB-S/DVB-S2) > MaxSignal = 670; break; > case 0x????????: // TechniSat SkyStar > MaxSignal = ???; break; > } > > Klaus > > _______________________________________________ > vdr mailing list > vdr@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr --- /usr/local/src/vdr-2.0.3/dvbdevice.c 2013-09-01 23:04:05.000000000 +0200 +++ /usr/local/src/vdr-2.0.3/dvbdevice.mod.c 2013-10-13 15:48:14.877333948 +0200 @@ -545,10 +545,15 @@ uint16_t MaxSignal = 0xFFFF; // Let's assume the default is using the entire range. // Use the subsystemId to identify individual devices in case they need // special treatment to map their Signal value into the range 0...0xFFFF. + // Modified by knap for TechniSat SkyStar 2 DVB-S rev 2.3P switch (subsystemId) { case 0x13C21019: // TT-budget S2-3200 (DVB-S/DVB-S2) case 0x1AE40001: // TechniSat SkyStar HD2 (DVB-S/DVB-S2) - MaxSignal = 670; break; + MaxSignal = 670; + break; + case 0x13D02103: // TechniSat SkyStar 2 DVB-S rev 2.3P + MaxSignal = 0x4925; + break; } int s = int(Signal) * 100 / MaxSignal; if (s > 100)