All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Fredrik Lingvall <fredrik.lingvall@gmail.com>
Cc: Eddi De Pieri <eddi@depieri.net>,
	linux-media@vger.kernel.org,
	Devin Heitmueller <dheitmueller@kernellabs.com>,
	Steven Toth <stoth@kernellabs.com>,
	Michael Krufky <mkrufky@kernellabs.com>
Subject: Re: HVR-930C DVB-T mode report
Date: Thu, 08 Dec 2011 17:49:58 -0200	[thread overview]
Message-ID: <4EE114E6.9040307@redhat.com> (raw)
In-Reply-To: <4EE0D264.4090306@redhat.com>

On 08-12-2011 13:06, Mauro Carvalho Chehab wrote:
> On 08-12-2011 12:00, Fredrik Lingvall wrote:
>> On 12/08/11 11:12, Mauro Carvalho Chehab wrote:
>>>> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
>>>> Scanning 7MHz frequencies...
>>>> 177500: (time: 00:00)
>>>> 184500: (time: 00:03)
>>>>
>>>> [...]
>>>> 834000: (time: 02:46) (time: 02:48)
>>>> 842000: (time: 02:50)
>>>> 850000: (time: 02:52) (time: 02:55)
>>>> 858000: (time: 02:56) (time: 02:58)
>>>>
>>>> ERROR: Sorry - i couldn't get any working frequency/transponder
>>>> Nothing to scan!!
>>>
>>>
>>> With regards to Italy, w_scan does something different than scan. The auto-italy
>>> table used by scan tries several channels with both 8MHz and 7MHz, while w_scan
>>> only tries 7MHz for VHF. This might explain the issue, if you're still able to
>>> scan/tune with scan and if you have a good antenna.
>>>>
>>>>
>>>> Regards
>>>>
>>>> Eddi
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>> Are there similar problems while scanning DVB-C nets with w_scan?
>>
>> And, is there a "scan everything" table for dvbscan?
>
> No. Both w_scan/dvbscan get the same channels, and they match the channels
> available at the STB and with other boards.
>
> Btw, drivers/media/common/tuners/xc5000.c doesn't support 7MHz for DVB-T:
>
> case BANDWIDTH_7_MHZ:
> printk(KERN_ERR "xc5000 bandwidth 7MHz not supported\n");
> return -EINVAL;
>
> This may explain why you're getting so few channels on it. Only channels marked as
> 8MHz will be tuned.
>
> I _suspect_ that:
> case BANDWIDTH_7_MHZ:
> case BANDWIDTH_8_MHZ:
> priv->bandwidth = BANDWIDTH_8_MHZ;
> priv->video_standard = DTV8;
> priv->freq_hz = params->frequency - 2750000;
> break;

On a more detailed look, I suspect that the reason why DTV7 was not implemented is
because there are two ways of supporting it: via DTV_78 or via DTV-8.

While I'm not sure about the frequency offset for DTV7, I suspect it is 2250000. Could
you please try the enclosed patch and see if it improves DVB-T and DVB-C detection?

Devin/Steven/Michael,

Could you please double check what is the offset for the center frequency to
be used on a 7MHz firmware on xc5000? I suspect it should be 2.25 MHz.

People are reporting troubles with HVR-930C channel detection, and I suspect that the
issue is due to the lack of proper support for 7MHz.

Regards,
Mauro

-

[media] xc5000: Add support for 7MHz-spaced channels

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c
index 19990bc..97ad338 100644
--- a/drivers/media/common/tuners/xc5000.c
+++ b/drivers/media/common/tuners/xc5000.c
@@ -676,8 +676,10 @@ static int xc5000_set_params(struct dvb_frontend *fe,
  			priv->freq_hz = params->frequency - 1750000;
  			break;
  		case BANDWIDTH_7_MHZ:
-			printk(KERN_ERR "xc5000 bandwidth 7MHz not supported\n");
-			return -EINVAL;
+			priv->bandwidth = BANDWIDTH_7_MHZ;
+			priv->video_standard = DTV7;
+			priv->freq_hz = params->frequency - 2250000;
+			break;
  		case BANDWIDTH_8_MHZ:
  			priv->bandwidth = BANDWIDTH_8_MHZ;
  			priv->video_standard = DTV8;
@@ -715,6 +717,10 @@ static int xc5000_set_params(struct dvb_frontend *fe,
  				priv->bandwidth = BANDWIDTH_6_MHZ;
  				priv->video_standard = DTV6;
  				priv->freq_hz = params->frequency - 1750000;
+			} else if (bw <= 7000000) {
+				priv->bandwidth = BANDWIDTH_7_MHZ;
+				priv->video_standard = DTV7;
+				priv->freq_hz = params->frequency - 2250000;
  			} else {
  				priv->bandwidth = BANDWIDTH_8_MHZ;
  				priv->video_standard = DTV7_8;




  reply	other threads:[~2011-12-08 19:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08  9:10 HVR-930C DVB-T mode report Eddi De Pieri
2011-12-08 10:12 ` Mauro Carvalho Chehab
2011-12-08 14:00   ` Fredrik Lingvall
2011-12-08 15:06     ` Mauro Carvalho Chehab
2011-12-08 19:49       ` Mauro Carvalho Chehab [this message]
2011-12-09  0:45         ` Eddi De Pieri
2011-12-09  9:35           ` Eddi De Pieri
2011-12-09 10:46             ` Mauro Carvalho Chehab
2011-12-09 11:46               ` Mauro Carvalho Chehab
2011-12-12 20:16                 ` Eddi De Pieri
2011-12-12 20:44                   ` Devin Heitmueller
2011-12-09 10:00           ` Mauro Carvalho Chehab

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=4EE114E6.9040307@redhat.com \
    --to=mchehab@redhat.com \
    --cc=dheitmueller@kernellabs.com \
    --cc=eddi@depieri.net \
    --cc=fredrik.lingvall@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mkrufky@kernellabs.com \
    --cc=stoth@kernellabs.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.