mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: mchehab@redhat.com, sameo@linux.intel.com, perex@perex.cz,
	tiwai@suse.de, linux-media@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 6/8] v4l2: Add documentation for the FM RX controls
Date: Tue, 26 Feb 2013 09:06:32 +0100	[thread overview]
Message-ID: <201302260906.32862.hverkuil@xs4all.nl> (raw)
In-Reply-To: <1361860734-21666-7-git-send-email-andrew.smirnov@gmail.com>

On Tue February 26 2013 07:38:52 Andrey Smirnov wrote:
> Add appropriate documentation for all the newly added standard
> controls.

Give credit to Manjunatha Halli.

> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  Documentation/DocBook/media/v4l/compat.xml         |    3 +
>  Documentation/DocBook/media/v4l/controls.xml       |   72 ++++++++++++++++++++
>  .../DocBook/media/v4l/vidioc-g-ext-ctrls.xml       |   11 ++-
>  3 files changed, 85 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/DocBook/media/v4l/compat.xml b/Documentation/DocBook/media/v4l/compat.xml
> index 104a1a2..f418bc3 100644
> --- a/Documentation/DocBook/media/v4l/compat.xml
> +++ b/Documentation/DocBook/media/v4l/compat.xml
> @@ -2310,6 +2310,9 @@ more information.</para>
>  	<listitem>
>  	  <para>Added FM Modulator (FM TX) Extended Control Class: <constant>V4L2_CTRL_CLASS_FM_TX</constant> and their Control IDs.</para>
>  	</listitem>
> +<listitem>
> +	  <para>Added FM Receiver (FM RX) Extended Control Class: <constant>V4L2_CTRL_CLASS_FM_RX</constant> and their Control IDs.</para>
> +	</listitem>
>  	<listitem>
>  	  <para>Added Remote Controller chapter, describing the default Remote Controller mapping for media devices.</para>
>  	</listitem>
> diff --git a/Documentation/DocBook/media/v4l/controls.xml b/Documentation/DocBook/media/v4l/controls.xml
> index 9e8f854..e8fe005 100644
> --- a/Documentation/DocBook/media/v4l/controls.xml
> +++ b/Documentation/DocBook/media/v4l/controls.xml
> @@ -4687,4 +4687,76 @@ interface and may change in the future.</para>
>        </table>
>  
>      </section>
> +
> +    <section id="fm-rx-controls">
> +      <title>FM Receiver Control Reference</title>
> +
> +      <para>The FM Receiver (FM_RX) class includes controls for common features of
> +      FM Reception capable devices.</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_RDS_RECEPTION</constant>&nbsp;</entry>
> +            <entry>boolean</entry>
> +          </row><row><entry spanname="descr">Enables/disables RDS
> +	  reception by the radio tuner</entry>
> +          </row>
> +          <row>
> +	    <entry spanname="id"><constant>V4L2_CID_TUNE_DEEMPHASIS</constant>&nbsp;</entry>
> +	    <entry>integer</entry>

This is type 'enum v4l2_deemphasis', not integer. BTW, V4L2_CID_TUNE_PREEMPHASIS
has the same mistake, can you update that entry as well to 'enum v4l2_preemphasis'?

> +	  </row>
> +	  <row id="v4l2-deemphasis"><entry spanname="descr">Configures the de-emphasis value for reception.
> +A de-emphasis filter is applied to the broadcast to accentuate the high audio frequencies.
> +Depending on the region, a time constant of either 50 or 75 useconds is used. The enum&nbsp;v4l2_emphasis

enum v4l2_deemphasis

> +defines possible values for de-emphasis. Here they are:</entry>
> +	</row><row>
> +	<entrytbl spanname="descr" cols="2">
> +		  <tbody valign="top">
> +		    <row>
> +		      <entry><constant>V4L2_PREEMPHASIS_DISABLED</constant>&nbsp;</entry>
> +		      <entry>No de-emphasis is applied.</entry>
> +		    </row>
> +		    <row>
> +		      <entry><constant>V4L2_PREEMPHASIS_50_uS</constant>&nbsp;</entry>
> +		      <entry>A de-emphasis of 50 uS is used.</entry>
> +		    </row>
> +		    <row>
> +		      <entry><constant>V4L2_PREEMPHASIS_75_uS</constant>&nbsp;</entry>
> +		      <entry>A de-emphasis of 75 uS is used.</entry>

For the three constants above: PRE -> DE

> +		    </row>
> +		  </tbody>
> +		</entrytbl>
> +
> +	  </row>
> +          <row><entry></entry></row>
> +        </tbody>
> +      </tgroup>
> +      </table>
> +
> +      </section>
>  </section>
> diff --git a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml
> index 4e16112..b03a57b 100644
> --- a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml
> +++ b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml
> @@ -9,7 +9,7 @@ VIDIOC_TRY_EXT_CTRLS</refentrytitle>
>      <refname>VIDIOC_G_EXT_CTRLS</refname>
>      <refname>VIDIOC_S_EXT_CTRLS</refname>
>      <refname>VIDIOC_TRY_EXT_CTRLS</refname>
> -    <refpurpose>Get or set the value of several controls, try control
> +   <refpurpose>Get or set the value of several controls, try control

Spurious whitespace change, just revert this to the original.

>  values</refpurpose>
>    </refnamediv>
>  
> @@ -319,6 +319,15 @@ These controls are described in <xref
>  	    processing controls. These controls are described in <xref
>  	    linkend="image-process-controls" />.</entry>
>  	  </row>
> +
> +	  <row>
> +	    <entry><constant>V4L2_CTRL_CLASS_FM_RX</constant></entry>
> +	    <entry>0xa10000</entry>
> +	    <entry>The class containing FM Receiver (FM RX) controls.
> +These controls are described in <xref
> +		linkend="fm-rx-controls" />.</entry>
> +	  </row>
> +
>  	</tbody>
>        </tgroup>
>      </table>
> 

Regards,

	Hans

  reply	other threads:[~2013-02-26  8:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26  6:38 [PATCH v5 0/8] Driver for Si476x series of chips Andrey Smirnov
2013-02-26  6:38 ` [PATCH v5 1/8] mfd: Add header files and Kbuild plumbing for SI476x MFD core Andrey Smirnov
2013-02-26  6:38 ` [PATCH v5 2/8] mfd: Add commands abstraction layer for SI476X MFD Andrey Smirnov
2013-02-26  6:38 ` [PATCH v5 3/8] mfd: Add the main bulk of core driver for SI476x code Andrey Smirnov
2013-02-26  6:38 ` [PATCH v5 4/8] mfd: Add chip properties handling code for SI476X MFD Andrey Smirnov
2013-02-26  6:38 ` [PATCH v5 5/8] v4l2: Add standard controls for FM receivers Andrey Smirnov
2013-02-26  8:00   ` Hans Verkuil
2013-02-26  6:38 ` [PATCH v5 6/8] v4l2: Add documentation for the FM RX controls Andrey Smirnov
2013-02-26  8:06   ` Hans Verkuil [this message]
2013-02-26  6:38 ` [PATCH v5 7/8] v4l2: Add private controls base for SI476X Andrey Smirnov
2013-02-26  8:07   ` Hans Verkuil
2013-02-26  6:38 ` [PATCH v5 8/8] v4l2: Add a V4L2 driver for SI476X MFD Andrey Smirnov
2013-02-26  8:25   ` Hans Verkuil
2013-02-26 16:03     ` Andrey Smirnov
2013-02-26  8:30 ` [PATCH v5 0/8] Driver for Si476x series of chips 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=201302260906.32862.hverkuil@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=andrew.smirnov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    --cc=perex@perex.cz \
    --cc=sameo@linux.intel.com \
    --cc=tiwai@suse.de \
    /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®