All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Ringel <stefan.ringel@arcor.de>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: linux-media@vger.kernel.org
Subject: Re: [git:v4l-dvb/master] V4L/DVB: tuner-xc2028: fix tuning logic to solve a regression in Australia
Date: Fri, 19 Feb 2010 22:30:53 +0100	[thread overview]
Message-ID: <4B7F030D.8000409@arcor.de> (raw)
In-Reply-To: <4B7EF9E6.80000@redhat.com>

Am 19.02.2010 21:51, schrieb Mauro Carvalho Chehab:
> Stefan Ringel wrote:
>   
>> Am 19.02.2010 17:07, schrieb Patch from Mauro Carvalho Chehab:
>>     
>>>  	}
>>>  
>>>  	div = (freq - offset + DIV / 2) / DIV;
>>> @@ -1114,17 +1152,22 @@ static int xc2028_set_params(struct dvb_frontend *fe,
>>>  
>>>  	/* All S-code tables need a 200kHz shift */
>>>  	if (priv->ctrl.demod) {
>>> -		demod = priv->ctrl.demod + 200;
>>> +		/*
>>> +		 * Newer firmwares require a 200 kHz offset only for ATSC
>>> +		 */
>>> +		if (type == ATSC || priv->firm_version < 0x0302)
>>> +			demod = priv->ctrl.demod + 200;
>>>  		/*
>>>  		 * The DTV7 S-code table needs a 700 kHz shift.
>>> -		 * Thanks to Terry Wu <terrywu2009@gmail.com> for reporting this
>>>  		 *
>>>  		 * DTV7 is only used in Australia.  Germany or Italy may also
>>>  		 * use this firmware after initialization, but a tune to a UHF
>>>  		 * channel should then cause DTV78 to be used.
>>> +		 *
>>> +		 * Unfortunately, on real-field tests, the s-code offset
>>> +		 * didn't work as expected, as reported by
>>> +		 * Robert Lowery <rglowery@exemail.com.au>
>>>  		 */
>>> -		if (type & DTV7)
>>> -			demod += 500;
>>>  	}
>>>  
>>>  	return generic_set_freq(fe, p->frequency,
>>>   
>>>       
>> Hi Mauro,
>>
>> your patch doesn't work. Here is not set demod for all others (demod=0).
>>
>>     
> For DVB to properly work, you need to fill ctrl.demod at tm6000, otherwise,
> demod will be 0, and it will use some default that won't likely work.
>
>   
ctrl.demod is set in tm6000 since last month and doesn't work any more now!

Stefan Ringel

-- 
Stefan Ringel <stefan.ringel@arcor.de>


      reply	other threads:[~2010-02-19 21:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1NiVOP-0004ij-2F@www.linuxtv.org>
2010-02-19 20:21 ` [git:v4l-dvb/master] V4L/DVB: tuner-xc2028: fix tuning logic to solve a regression in Australia Stefan Ringel
2010-02-19 20:51   ` Mauro Carvalho Chehab
2010-02-19 21:30     ` Stefan Ringel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B7F030D.8000409@arcor.de \
    --to=stefan.ringel@arcor.de \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.