From patchwork Mon Jan 7 16:51:02 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Gr=C3=A9goire_Favre?= X-Patchwork-Id: 12570 Received: from nf-out-0910.google.com ([64.233.182.191]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1JBvBq-0005Dp-RX for vdr@linuxtv.org; Mon, 07 Jan 2008 17:51:06 +0100 Received: by nf-out-0910.google.com with SMTP id d21so588746nfb.11 for ; Mon, 07 Jan 2008 08:51:06 -0800 (PST) Received: by 10.78.193.19 with SMTP id q19mr23353526huf.69.1199724665201; Mon, 07 Jan 2008 08:51:05 -0800 (PST) Received: from vdr ( [85.218.35.251]) by mx.google.com with ESMTPS id j2sm62464913mue.3.2008.01.07.08.51.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2008 08:51:04 -0800 (PST) Received: by vdr (Postfix, from userid 1000) id 7BBD34406B; Mon, 7 Jan 2008 17:51:02 +0100 (CET) Date: Mon, 7 Jan 2008 17:51:02 +0100 To: VDR Mailing List Message-ID: <20080107165102.GB7672@gmail.com> References: <20080102155326.GD10310@gmail.com> <477BBAFD.2070601@gmail.com> <477BD0C4.9040401@gmx.de> <477BD462.2050502@gmail.com> <477C0BEB.6020104@gmx.de> <477EC925.6050606@gmx.de> <477FC42C.5030709@gmx.de> <20080106182344.GB7501@gmail.com> <47813B58.4080502@gmx.de> <20080107161917.GA7672@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20080107161917.GA7672@gmail.com> X-Operating-System: Linux 2.6.23 User-Agent: Mutt/1.5.16 (2007-06-09) From: Gregoire Favre Subject: Re: [vdr] [ANNOUNCE] DVB-S2 + H.264 support for VDR-1.5.12 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 16:51:07 -0000 Status: O X-Status: X-Keywords: X-UID: 15012 On Mon, Jan 07, 2008 at 05:19:17PM +0100, Gregoire Favre wrote: > On Sun, Jan 06, 2008 at 09:34:32PM +0100, Reinhard Nissl wrote: > > Hi, > > > > Please add some debug code to cDvbDevice::ProvidesTransponder() > > to find out what's going wrong in your case, i. e. compare the > > provided and requested modulation systems. > > My cards : > > 0: 101469280 > 1: 101469280 > 2: 101469280 > > But the card 1 : Hauppauge HVR-4000 is the dvb-s2 one ??? > > DVB: registering frontend 0 (ST STV0299 DVB-S)... > DVB: registering frontend 1 (Conexant CX24116/CX24118)... > DVB: registering frontend 2 (Conexant CX24123/CX24109)... > Without the patch and with -D1 DVB-S2 works perfectly. In case someone want to try to log here a small diff for it : --- device.c.orig 2008-01-07 17:17:05.000000000 +0100 +++ device.c 2008-01-07 16:59:22.000000000 +0100 @@ -18,6 +18,7 @@ #include "receiver.h" #include "status.h" #include "transfer.h" +#include // --- cLiveSubtitle --------------------------------------------------------- @@ -433,6 +434,7 @@ imp <<= 1; imp |= NumUsableSlots ? 0 : device[i]->HasCi(); // avoid cards with Common Interface for FTA channels imp <<= 1; imp |= device[i]->HasDecoder(); // avoid full featured cards imp <<= 1; imp |= NumUsableSlots ? !ChannelCamRelations.CamDecrypt(Channel->GetChannelID(), j + 1) : 0; // prefer CAMs that are known to decrypt this channel + std::cerr << "DVBS2-log: " << i << ": " << imp << std::endl; if (imp < Impact) { // This device has less impact than any previous one, so we take it. Impact = imp; --- dvbdevice.c.orig 2008-01-07 17:17:58.000000000 +0100 +++ dvbdevice.c 2008-01-07 17:01:46.000000000 +0100 @@ -26,6 +26,7 @@ #include "receiver.h" #include "status.h" #include "transfer.h" +#include #define DO_REC_AND_PLAY_ON_PRIMARY_DEVICE 1 #define DO_MULTIPLE_RECORDINGS 1 @@ -805,12 +806,18 @@ bool cDvbDevice::ProvidesTransponder(const cChannel *Channel) const { - if (!ProvidesSource(Channel->Source())) + if (!ProvidesSource(Channel->Source())) { + std::cerr << "DVBS2-log: - Doesn't provide source" << std::endl; return false; // doesn't provide source - if (!cSource::IsSat(Channel->Source())) + } + if (!cSource::IsSat(Channel->Source())) { + std::cerr << "DVBS2-log: + source is sufficient for non sat" << std::endl; return true; // source is sufficient for non sat - if (!(frontendType & Channel->ModulationSystem())) + } + if (!(frontendType & Channel->ModulationSystem())) { + std::cerr << "DVBS2-log: - requires modulation system which frontend doesn't provide" << std::endl; return false; // requires modulation system which frontend doesn't provide + } return !Setup.DiSEqC || Diseqcs.Get(Channel->Source(), Channel->Frequency(), Channel->Polarization()); }