Re: [PATCH v9 3/4] V4L2: WL1273 FM Radio: Controls for the FM radio.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

On Wed, 2010-09-08 at 21:09 +0200, ext Mauro Carvalho Chehab wrote:
> > +static int wl1273_fm_vidioc_s_tuner(struct file *file, void *priv,
> > +                       struct v4l2_tuner *tuner)
> > +{
> > +     struct wl1273_device *radio =
video_get_drvdata(video_devdata(file));
> > +     struct wl1273_core *core = radio->core;
> > +     int r = 0;
> > +
> > +     dev_dbg(radio->dev, "%s\n", __func__);
> > +     dev_dbg(radio->dev, "tuner->index: %d\n", tuner->index);
> > +     dev_dbg(radio->dev, "tuner->name: %s\n", tuner->name);
> > +     dev_dbg(radio->dev, "tuner->capability: 0x%04x\n",
tuner->capability);
> > +     dev_dbg(radio->dev, "tuner->rxsubchans: 0x%04x\n",
tuner->rxsubchans);
> > +     dev_dbg(radio->dev, "tuner->rangelow: %d\n", tuner->rangelow);
> > +     dev_dbg(radio->dev, "tuner->rangehigh: %d\n",
tuner->rangehigh);
> 
> Ranges should be using tuner->rangelow/rangehigh to change band
limits.

I just want to make sure that I understand you correctly. So the idea is
that with the g_tuner the driver can tell the frequency range that's
supported by the chip in RX mode, which is 76MHz to 108 MHz. The lowest
part is in the Japan band and the highest is in the Europe/USA band, the
middle section can be either...

Then the application can choose any sub-range of the above by calling
s_tuner with any values rangelow > 76MHz and rangehigh < 108MHz? After
that the driver just deals with the given frequencies by changing the
band if necessary?

Cheers,
Matti


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux