mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: manjunatha_halli@ti.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	Manjunatha Halli <x0130808@ti.com>
Subject: Re: [PATCH V4 4/5] Media: Update docs for V4L2 FM new features
Date: Sun, 6 May 2012 21:00:09 +0200	[thread overview]
Message-ID: <201205062100.09979.hverkuil@xs4all.nl> (raw)
In-Reply-To: <201205050041.34232.hverkuil@xs4all.nl>

On Sat May 5 2012 00:41:34 Hans Verkuil wrote:
> > +    <table pgwide="1" frame="none" id="Radio band Types">
> > +      <title>Radio Band Types</title>
> > +      <tgroup cols="2">
> > +	&cs-str;
> > +	<tbody valign="top">
> > +		    <row>
> > +		      <entry><constant>FM_BAND_TYPE_ALL</constant>&nbsp;</entry>
> > +		      <entry>All Bands from 65.8 MHz till 108 Mhz or 162.55 MHz if weather band.</entry>
> > +		    </row>
> 
> Hmm, I have to thing about that name. And about other related issues as well:
> what to do if a band isn't supported? How does an application know which bands are
> in fact supported?
> 
> It's too late and I'll have to think about this tomorrow.

OK, I've thought about this a bit more. First of all we need a way to detect
which bands are supported. I propose to add capability flags to struct v4l2_tuner,
one for each band. There are more than enough capability flags available, so we can
start from bit 16 and add 4 capability flags for the four bands.

Since applications can now detect which bands are available, it is OK for the SEEK
ioctl to return -EINVAL if the band isn't present. Please update the SEEK ioctl
documentation accordingly.

With respect to the name FM_BAND_TYPE_ALL: I propose to rename that to _TYPE_DEFAULT.
The description should be something like:

"This is the default band, which should be the widest frequency range supported by
the hardware."

I think that is a better name since that is what drivers to at the moment. I don't
think you can guarantee an 'All bands' setting as that is often limited by the hardware.

What do you think?

Regards,

	Hans

> 
> Regards,
> 
> 	Hans
> 
> > +		    <row>
> > +		      <entry><constant>FM_BAND_TYPE_EUROPE_US</constant>&nbsp;</entry>
> > +		      <entry>Europe or US band(87.5 Mhz - 108 MHz).</entry>
> > +		    </row>
> > +		    <row>
> > +		      <entry><constant>FM_BAND_TYPE_JAPAN</constant>&nbsp;</entry>
> > +		      <entry>Japan band(76 MHz - 90 MHz).</entry>
> > +		    </row>
> > +		    <row>
> > +		      <entry><constant>FM_BAND_TYPE_RUSSIAN</constant>&nbsp;</entry>
> > +		      <entry>OIRT or Russian band(65.8 MHz - 74 MHz).</entry>
> > +		    </row>
> > +		    <row>
> > +		      <entry><constant>FM_BAND_TYPE_WEATHER</constant>&nbsp;</entry>
> > +		      <entry>Weather band(162.4 MHz - 162.55 MHz).</entry>
> > +		    </row>
> > +	</tbody>
> > +      </tgroup>
> > +    </table>
> >  
> >    <refsect1>
> >      &return-value;
> > 
> 

  reply	other threads:[~2012-05-06 19:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-04 20:48 [PATCH V4 0/5] [Media] Radio: Fixes and New features for FM manjunatha_halli
2012-05-04 20:48 ` [PATCH V4 1/5] WL128x: Add support for FM TX RDS manjunatha_halli
2012-05-04 20:48 ` [PATCH V4 2/5] New control class and features for FM RX manjunatha_halli
2012-05-04 20:49 ` [PATCH V4 3/5] Add new CID for FM TX RDS Alternate Frequency manjunatha_halli
2012-05-04 20:49 ` [PATCH V4 4/5] Media: Update docs for V4L2 FM new features manjunatha_halli
2012-05-04 22:41   ` Hans Verkuil
2012-05-06 19:00     ` Hans Verkuil [this message]
2012-05-07 14:52       ` halli manjunatha
2012-05-04 20:49 ` [PATCH V4 5/5] WL12xx: Add support for " manjunatha_halli

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=201205062100.09979.hverkuil@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=manjunatha_halli@ti.com \
    --cc=x0130808@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®