All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: "Matti J. Aaltonen" <matti.j.aaltonen@nokia.com>
Cc: linux-media@vger.kernel.org, hverkuil@xs4all.nl,
	eduardo.valentin@nokia.com
Subject: Re: [PATCH v9 4/4] Documentation: v4l: Add hw_seek spacing and FM_RX class
Date: Wed, 08 Sep 2010 15:37:17 -0300	[thread overview]
Message-ID: <4C87D7DD.9080806@redhat.com> (raw)
In-Reply-To: <1283168302-19111-5-git-send-email-matti.j.aaltonen@nokia.com>

Em 30-08-2010 08:38, Matti J. Aaltonen escreveu:
> Add a couple of words about the spacing field in the HW seek struct,
> about the V4L2_CAP_RAW_RDS_ONLY capability flag and about the
> new FM RX control class.

Same comment as patch 1/4: FM bandwidth can already be defined via VIDIOC_[G|S]_TUNER.
So, this patch is just creating a duplicated API for something already defined.

> 
> Signed-off-by: Matti J. Aaltonen <matti.j.aaltonen@nokia.com>
> ---
>  Documentation/DocBook/v4l/controls.xml             |   71 ++++++++++++++++++++
>  Documentation/DocBook/v4l/dev-rds.xml              |    5 ++
>  .../DocBook/v4l/vidioc-s-hw-freq-seek.xml          |   10 ++-
>  3 files changed, 84 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/DocBook/v4l/controls.xml b/Documentation/DocBook/v4l/controls.xml
> index 8408caa..e9512eb 100644
> --- a/Documentation/DocBook/v4l/controls.xml
> +++ b/Documentation/DocBook/v4l/controls.xml
> @@ -2088,6 +2088,77 @@ manually or automatically if set to zero. Unit, range and step are driver-specif
>  <para>For more details about RDS specification, refer to
>  <xref linkend="en50067" /> document, from CENELEC.</para>
>      </section>
> +    <section id="fm-rx-controls">
> +      <title>FM Tuner Control Reference</title>
> +
> +      <para>The FM Tuner (FM_RX) class includes controls for common features of
> +devices that are capable of receiving FM transmissions. Currently this class includes a parameter
> +defining the FM radio band being used.</para>
> +
> +      <table pgwide="1" frame="none" id="fm-rx-control-id">
> +      <title>FM_RX Control IDs</title>
> +
> +      <tgroup cols="4">
> +	<colspec colname="c1" colwidth="1*" />
> +	<colspec colname="c2" colwidth="6*" />
> +	<colspec colname="c3" colwidth="2*" />
> +	<colspec colname="c4" colwidth="6*" />
> +	<spanspec namest="c1" nameend="c2" spanname="id" />
> +	<spanspec namest="c2" nameend="c4" spanname="descr" />
> +	<thead>
> +	  <row>
> +	    <entry spanname="id" align="left">ID</entry>
> +	    <entry align="left">Type</entry>
> +	  </row><row rowsep="1"><entry spanname="descr" align="left">Description</entry>
> +	  </row>
> +	</thead>
> +	<tbody valign="top">
> +	  <row><entry></entry></row>
> +	  <row>
> +	    <entry spanname="id"><constant>V4L2_CID_FM_RX_CLASS</constant>&nbsp;</entry>
> +	    <entry>class</entry>
> +	  </row><row><entry spanname="descr">The FM_RX class
> +descriptor. Calling &VIDIOC-QUERYCTRL; for this control will return a
> +description of this control class.</entry>
> +	  </row>
> +	  <row>
> +	    <entry spanname="id"><constant>V4L2_CID_FM_RX_BAND</constant>&nbsp;</entry>
> +	    <entry>integer</entry>
> +	  </row>
> +	  <row id="v4l2-fm_rx_band"><entry spanname="descr">Configures the FM radio
> +frequency range being used. Currently there are three bands in use, see  <ulink
> +url="http://en.wikipedia.org/wiki/FM_broadcasting">Wikipedia</ulink>.
> +Usually 87.5 to 108.0 MHz is used, or some portion thereof, with a few exceptions:
> +In Japan, the band 76-90 MHz is used and in the former Soviet republics
> +and some Eastern European countries, the older 65-74 MHz band,
> +referred also to as the OIRT band, is still used.
> +
> +The enum&nbsp; v4l2_fm_rx_band defines possible values for the FM band. They are:</entry>
> +	</row><row>
> +	<entrytbl spanname="descr" cols="2">
> +		  <tbody valign="top">
> +		    <row>
> +		      <entry><constant>V4L2_FM_BAND_OTHER</constant>&nbsp;</entry>
> +		      <entry>Frequencies from 87.5 to 108.0 MHz</entry>
> +		    </row>
> +		    <row>
> +		      <entry><constant>V4L2_FM_BAND_JAPAN</constant>&nbsp;</entry>
> +		      <entry>from 65 to 74 MHz</entry>
> +		    </row>
> +		    <row>
> +		      <entry><constant>V4L2_FM_BAND_OIRT</constant>&nbsp;</entry>
> +		      <entry>from 65 to 74 MHz</entry>
> +		    </row>
> +		  </tbody>
> +		</entrytbl>
> +
> +	  </row>
> +	  <row><entry></entry></row>
> +	</tbody>
> +      </tgroup>
> +      </table>
> +
> +    </section>
>  </section>
>  
>    <!--
> diff --git a/Documentation/DocBook/v4l/dev-rds.xml b/Documentation/DocBook/v4l/dev-rds.xml
> index 0869d70..39c89c2 100644
> --- a/Documentation/DocBook/v4l/dev-rds.xml
> +++ b/Documentation/DocBook/v4l/dev-rds.xml
> @@ -42,6 +42,11 @@ field of &v4l2-modulator;.
>  In order to enable the RDS transmission one must set the <constant>V4L2_TUNER_SUB_RDS</constant>
>  bit in the <structfield>txsubchans</structfield> field of &v4l2-modulator;.</para>
>  
> +    <para>Devices capable of only passing through raw uninterpreted RDS data
> +set the flags as described above and in addition
> +set the <constant>V4L2_CAP_RAW_RDS_ONLY</constant> flag in
> +the <structfield>capabilities</structfield> field of &v4l2-capability;
> +returned by the &VIDIOC-QUERYCAP; ioctl.</para>
>    </section>
>  
>    <section>
> diff --git a/Documentation/DocBook/v4l/vidioc-s-hw-freq-seek.xml b/Documentation/DocBook/v4l/vidioc-s-hw-freq-seek.xml
> index 14b3ec7..c30dcc4 100644
> --- a/Documentation/DocBook/v4l/vidioc-s-hw-freq-seek.xml
> +++ b/Documentation/DocBook/v4l/vidioc-s-hw-freq-seek.xml
> @@ -51,7 +51,8 @@
>  
>      <para>Start a hardware frequency seek from the current frequency.
>  To do this applications initialize the <structfield>tuner</structfield>,
> -<structfield>type</structfield>, <structfield>seek_upward</structfield> and
> +<structfield>type</structfield>, <structfield>seek_upward</structfield>,
> +<structfield>spacing</structfield> and
>  <structfield>wrap_around</structfield> fields, and zero out the
>  <structfield>reserved</structfield> array of a &v4l2-hw-freq-seek; and
>  call the <constant>VIDIOC_S_HW_FREQ_SEEK</constant> ioctl with a pointer
> @@ -89,7 +90,12 @@ field and the &v4l2-tuner; <structfield>index</structfield> field.</entry>
>  	  </row>
>  	  <row>
>  	    <entry>__u32</entry>
> -	    <entry><structfield>reserved</structfield>[8]</entry>
> +	    <entry><structfield>spacing</structfield></entry>
> +	    <entry>If non-zero, defines the hardware seek resolution in Hz. The driver selects the nearest value that is supported by the device. If spacing is zero a reasonable default value is used.</entry>
> +	  </row>
> +	  <row>
> +	    <entry>__u32</entry>
> +	    <entry><structfield>reserved</structfield>[7]</entry>
>  	    <entry>Reserved for future extensions. Drivers and
>  	    applications must set the array to zero.</entry>
>  	  </row>


  reply	other threads:[~2010-09-08 18:37 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30 11:38 [PATCH v9 0/4] FM Radio driver Matti J. Aaltonen
2010-08-30 11:38 ` [PATCH v9 1/4] V4L2: Add seek spacing and FM RX class Matti J. Aaltonen
2010-08-30 11:38   ` [PATCH v9 2/4] MFD: WL1273 FM Radio: MFD driver for the FM radio Matti J. Aaltonen
2010-08-30 11:38     ` [PATCH v9 3/4] V4L2: WL1273 FM Radio: Controls " Matti J. Aaltonen
2010-08-30 11:38       ` [PATCH v9 4/4] Documentation: v4l: Add hw_seek spacing and FM_RX class Matti J. Aaltonen
2010-09-08 18:37         ` Mauro Carvalho Chehab [this message]
2010-09-08 19:09       ` [PATCH v9 3/4] V4L2: WL1273 FM Radio: Controls for the FM radio Mauro Carvalho Chehab
2010-09-15 11:36         ` Matti J. Aaltonen
2010-09-16  7:37         ` Matti J. Aaltonen
2010-09-08 18:49     ` [PATCH v9 2/4] MFD: WL1273 FM Radio: MFD driver " Mauro Carvalho Chehab
2010-09-08 18:35   ` [PATCH v9 1/4] V4L2: Add seek spacing and FM RX class Mauro Carvalho Chehab
2010-09-09  7:57     ` Matti J. Aaltonen
2010-09-15  9:54     ` Matti J. Aaltonen
2010-09-07 19:10 ` [PATCH v9 0/4] FM Radio driver Hans Verkuil
2010-09-11 12:10 ` Hans Verkuil
2010-09-13 10:50   ` Matti J. Aaltonen
2010-09-13 11:32     ` Hans Verkuil
2010-09-13 11:44       ` Matti J. Aaltonen
2010-09-13 11:51         ` Hans Verkuil
2010-09-13 11:59           ` Matti J. Aaltonen
2010-09-13 12:06             ` Hans Verkuil
2010-09-13 12:15               ` Matti J. Aaltonen
2010-09-13 12:23                 ` Hans Verkuil

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=4C87D7DD.9080806@redhat.com \
    --to=mchehab@redhat.com \
    --cc=eduardo.valentin@nokia.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=matti.j.aaltonen@nokia.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.