From patchwork Sat Feb 28 12:54:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antti Hartikainen X-Patchwork-Id: 12705 Received: from ah.fi ([217.30.176.99] ident=postfix) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1LdOhr-0006Lv-PZ for vdr@linuxtv.org; Sat, 28 Feb 2009 13:54:16 +0100 Received: by ah.fi (Postfix, from userid 502) id 0A6503E30E2; Sat, 28 Feb 2009 14:54:12 +0200 (EET) Date: Sat, 28 Feb 2009 14:54:12 +0200 From: Antti Hartikainen To: VDR Mailing List Message-ID: <20090228125412.GA4707@ankka.com> References: <20090226185211.GA15386@ankka.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=AWL=0.162, BAYES_00=-2.599 autolearn=ham Subject: Re: [vdr] eHD experiences with VDR 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: Sat, 28 Feb 2009 12:54:16 -0000 Status: O X-Status: X-Keywords: X-UID: 19649 On Sat, Feb 28, 2009 at 12:13:42PM +0000, Morfsta wrote: > On Thu, Feb 26, 2009 at 6:52 PM, Antti Hartikainen wrote: > > S2API patch didn't work with my DVB-T tuners so i needed to change tuning code from dvbdevice.c a little bit (to do it like scan-s2 > > did, as tuning worked fine with it) > > I had the same problem, can you post a diff to apply on top of the > S2API patch to fix the DVB-T tuning problem? Well.. I don't really recommend using this one, it completely ignores almost all settings from VDR channels config and uses autopilot instead. Works for me, it's an ugly hack and i don't recommend it to be used. And it forces transponder bandwidth to 8MHz, as it's only one in use in Finland. I didn't want to make things more complicated (like to get settings from vdr ;)). --- dvbdevice.c-orig 2009-02-28 14:46:17.000000000 +0200 +++ dvbdevice.c 2009-02-28 14:51:01.000000000 +0200 @@ -338,27 +338,32 @@ { // DVB-T Frontend[0].cmd = DTV_DELIVERY_SYSTEM; - Frontend[0].u.data = fe_delivery_system_t(channel.System()); +// Frontend[0].u.data = fe_delivery_system_t(channel.System()); + Frontend[0].u.data = SYS_DVBT; Frontend[1].cmd = DTV_FREQUENCY; Frontend[1].u.data = FrequencyToHz(channel.Frequency()); Frontend[2].cmd = DTV_INVERSION; Frontend[2].u.data = fe_spectral_inversion_t(channel.Inversion()); - Frontend[3].cmd = DTV_BANDWIDTH_HZ; - Frontend[3].u.data = fe_bandwidth_t(channel.Bandwidth()); - Frontend[4].cmd = DTV_CODE_RATE_HP; - Frontend[4].u.data = fe_code_rate_t(channel.CoderateH()); - Frontend[5].cmd = DTV_CODE_RATE_LP; - Frontend[5].u.data = fe_code_rate_t(channel.CoderateL()); - Frontend[6].cmd = DTV_MODULATION; - Frontend[6].u.data = fe_modulation_t(channel.Modulation()); - Frontend[7].cmd = DTV_TRANSMISSION_MODE; - Frontend[7].u.data = fe_transmit_mode_t(channel.Transmission()); - Frontend[8].cmd = DTV_GUARD_INTERVAL; - Frontend[8].u.data = fe_guard_interval_t(channel.Guard()); - Frontend[9].cmd = DTV_HIERARCHY; - Frontend[9].u.data = fe_hierarchy_t(channel.Hierarchy()); - Frontend[10].cmd = DTV_TUNE; - cmdseq.num = 11; + Frontend[3].cmd = DTV_SYMBOL_RATE; + Frontend[3].u.data = 0; + Frontend[4].cmd = DTV_BANDWIDTH_HZ; + Frontend[4].u.data = 8000000; +/* Frontend[5].cmd = DTV_CODE_RATE_HP; + Frontend[5].u.data = fe_code_rate_t(channel.CoderateH()); + Frontend[6].cmd = DTV_CODE_RATE_LP; + Frontend[6].u.data = fe_code_rate_t(channel.CoderateL()); + Frontend[7].cmd = DTV_MODULATION; + Frontend[7].u.data = fe_modulation_t(channel.Modulation()); + Frontend[8].cmd = DTV_TRANSMISSION_MODE; + Frontend[8].u.data = fe_transmit_mode_t(channel.Transmission()); + Frontend[9].cmd = DTV_GUARD_INTERVAL; + Frontend[9].u.data = fe_guard_interval_t(channel.Guard()); + Frontend[10].cmd = DTV_HIERARCHY; + Frontend[10].u.data = fe_hierarchy_t(channel.Hierarchy());*/ + Frontend[5].cmd = DTV_PILOT; + Frontend[5].u.data = PILOT_AUTO; + Frontend[6].cmd = DTV_TUNE; + cmdseq.num = 7; cmdseq.props = Frontend; tuneTimeout = DVBT_TUNE_TIMEOUT;