linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org,
	halli manjunatha <hallimanju@gmail.com>,
	Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [RFCv1 PATCH 2/5] v4l2 spec: document the new v4l2_tuner capabilities
Date: Sun, 27 May 2012 19:58:17 +0200	[thread overview]
Message-ID: <4FC26B39.6090106@redhat.com> (raw)
In-Reply-To: <b85301e88453a46256e0d2b9dcd1dbf10557d8c7.1338118975.git.hans.verkuil@cisco.com>

Small typo, see comment inline, with that fixed:

Acked-by: Hans de Goede <hdegoede@redhat.com>

On 05/27/2012 01:50 PM, Hans Verkuil wrote:
> From: Hans Verkuil<hans.verkuil@cisco.com>
>
> Update the spec with the new capabilities and specify new error codes for
> S_HW_FREQ_SEEK.
>
> Signed-off-by: Hans Verkuil<hans.verkuil@cisco.com>
> ---
>   .../DocBook/media/v4l/vidioc-g-frequency.xml         |    6 ++++++
>   Documentation/DocBook/media/v4l/vidioc-g-tuner.xml   |   12 ++++++++++++
>   .../DocBook/media/v4l/vidioc-s-hw-freq-seek.xml      |   18 +++++++++++++++---
>   3 files changed, 33 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/DocBook/media/v4l/vidioc-g-frequency.xml b/Documentation/DocBook/media/v4l/vidioc-g-frequency.xml
> index 69c178a..40e58a4 100644
> --- a/Documentation/DocBook/media/v4l/vidioc-g-frequency.xml
> +++ b/Documentation/DocBook/media/v4l/vidioc-g-frequency.xml
> @@ -135,6 +135,12 @@ bounds or the value in the<structfield>type</structfield>  field is
>   wrong.</para>
>   	</listitem>
>         </varlistentry>
> +<varlistentry>
> +	<term><errorcode>EBUSY</errorcode></term>
> +	<listitem>
> +	<para>A hardware seek is in progress.</para>
> +	</listitem>
> +</varlistentry>
>       </variablelist>
>     </refsect1>
>   </refentry>
> diff --git a/Documentation/DocBook/media/v4l/vidioc-g-tuner.xml b/Documentation/DocBook/media/v4l/vidioc-g-tuner.xml
> index 62a1aa2..95d5371 100644
> --- a/Documentation/DocBook/media/v4l/vidioc-g-tuner.xml
> +++ b/Documentation/DocBook/media/v4l/vidioc-g-tuner.xml
> @@ -276,6 +276,18 @@ can or must be switched. (B/G PAL tuners for example are typically not
>         <constant>V4L2_TUNER_ANALOG_TV</constant>  tuners can have this capability.</entry>
>   	</row>
>   	<row>
> +	<entry><constant>V4L2_TUNER_CAP_HWSEEK_BOUNDED</constant></entry>
> +	<entry>0x0004</entry>
> +	<entry>If set, then this tuner supports the hardware seek functionality
> +	    where the seek stops when it reaches the end of the frequency range.</entry>
> +	</row>
> +	<row>
> +	<entry><constant>V4L2_TUNER_CAP_HWSEEK_WRAP</constant></entry>
> +	<entry>0x0008</entry>
> +	<entry>If set, then this tuner supports the hardware seek functionality
> +	    where the seek wraps around when it reaches the end of the frequency range.</entry>
> +	</row>
> +	<row>
>   	<entry><constant>V4L2_TUNER_CAP_STEREO</constant></entry>
>   	<entry>0x0010</entry>
>   	<entry>Stereo audio reception is supported.</entry>
> diff --git a/Documentation/DocBook/media/v4l/vidioc-s-hw-freq-seek.xml b/Documentation/DocBook/media/v4l/vidioc-s-hw-freq-seek.xml
> index 407dfce..d58b648 100644
> --- a/Documentation/DocBook/media/v4l/vidioc-s-hw-freq-seek.xml
> +++ b/Documentation/DocBook/media/v4l/vidioc-s-hw-freq-seek.xml
> @@ -58,6 +58,9 @@ To do this applications initialize the<structfield>tuner</structfield>,
>   call the<constant>VIDIOC_S_HW_FREQ_SEEK</constant>  ioctl with a pointer
>   to this structure.</para>
>
> +<para>If an error is returned, then the frequency original frequency will
> +    be restored.</para>
> +

One frequency too many in that sentence :)

>       <para>This ioctl is supported if the<constant>V4L2_CAP_HW_FREQ_SEEK</constant>  capability is set.</para>
>
>       <table pgwide="1" frame="none" id="v4l2-hw-freq-seek">
> @@ -87,7 +90,10 @@ field and the&v4l2-tuner;<structfield>index</structfield>  field.</entry>
>   	<row>
>   	<entry>__u32</entry>
>   	<entry><structfield>wrap_around</structfield></entry>
> -	<entry>If non-zero, wrap around when at the end of the frequency range, else stop seeking.</entry>
> +	<entry>If non-zero, wrap around when at the end of the frequency range, else stop seeking.
> +	    The&v4l2-tuner;<structfield>capability</structfield>  field will tell you what the
> +	    hardware supports.
> +	</entry>
>   	</row>
>   	<row>
>   	<entry>__u32</entry>
> @@ -118,9 +124,15 @@ wrong.</para>
>   	</listitem>
>         </varlistentry>
>         <varlistentry>
> -	<term><errorcode>EAGAIN</errorcode></term>
> +	<term><errorcode>ENODATA</errorcode></term>
> +	<listitem>
> +	<para>The hardware seek found no channels.</para>
> +	</listitem>
> +</varlistentry>
> +<varlistentry>
> +	<term><errorcode>EBUSY</errorcode></term>
>   	<listitem>
> -	<para>The ioctl timed-out. Try again.</para>
> +	<para>Another hardware seek is already in progress.</para>
>   	</listitem>
>         </varlistentry>
>       </variablelist>

  reply	other threads:[~2012-05-27 17:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-27 11:50 [RFCv1 PATCH 0/5] Add hwseek caps and frequency bands Hans Verkuil
2012-05-27 11:50 ` [RFCv1 PATCH 1/5] videodev2.h: add new hwseek capability bits Hans Verkuil
2012-05-27 11:50   ` [RFCv1 PATCH 2/5] v4l2 spec: document the new v4l2_tuner capabilities Hans Verkuil
2012-05-27 17:58     ` Hans de Goede [this message]
2012-05-27 11:50   ` [RFCv1 PATCH 3/5] S_HW_FREQ_SEEK: set capability flags and return ENODATA instead of EAGAIN Hans Verkuil
2012-05-27 17:59     ` Hans de Goede
2012-05-27 11:50   ` [RFCv1 PATCH 4/5] videodev2.h: add frequency band information Hans Verkuil
2012-05-27 18:00     ` Hans de Goede
2012-05-27 11:50   ` [RFCv1 PATCH 5/5] V4L2 spec: add frequency band documentation Hans Verkuil
2012-05-27 18:11     ` Hans de Goede
2012-05-27 17:56   ` [RFCv1 PATCH 1/5] videodev2.h: add new hwseek capability bits Hans de Goede

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=4FC26B39.6090106@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=hallimanju@gmail.com \
    --cc=hans.verkuil@cisco.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).