From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, m.chehab@samsung.com,
Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCH 2/3] DocBook media: fix the poll() 'no QBUF' documentation
Date: Sat, 20 Sep 2014 21:35:16 +0300 [thread overview]
Message-ID: <3467173.gE0lEHfa57@avalon> (raw)
In-Reply-To: <1411203375-15310-3-git-send-email-hverkuil@xs4all.nl>
Hi Hans,
Thank you for the patch.
On Saturday 20 September 2014 10:56:14 Hans Verkuil wrote:
> From: Hans Verkuil <hans.verkuil@cisco.com>
>
> Clarify what poll() returns if STREAMON was called but not QBUF.
> Make explicit the different behavior for this scenario for
> capture and output devices.
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
> Documentation/DocBook/media/v4l/func-poll.xml | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/DocBook/media/v4l/func-poll.xml
> b/Documentation/DocBook/media/v4l/func-poll.xml index 85cad8b..b7ed9e8
> 100644
> --- a/Documentation/DocBook/media/v4l/func-poll.xml
> +++ b/Documentation/DocBook/media/v4l/func-poll.xml
> @@ -44,10 +44,18 @@ Capture devices set the <constant>POLLIN</constant> and
> flags. When the function timed out it returns a value of zero, on
> failure it returns <returnvalue>-1</returnvalue> and the
> <varname>errno</varname> variable is set appropriately. When the
> -application did not call &VIDIOC-QBUF; or &VIDIOC-STREAMON; yet the
> +application did not call &VIDIOC-STREAMON; the
> <function>poll()</function> function succeeds, but sets the
> <constant>POLLERR</constant> flag in the
> -<structfield>revents</structfield> field.</para>
> +<structfield>revents</structfield> field. When the
> +application calls &VIDIOC-STREAMON; for a capture device without a
> +preceeding &VIDIOC-QBUF; the <function>poll()</function> function
> +succeeds, but sets the <constant>POLLERR</constant> flag in the
> +<structfield>revents</structfield> field.
Nitpicking here, I would word it as
When the application has called &VIDIOC-STREAMON; for a capture device but
hasn't called &VIDIOC-QBUF; yet the <function>poll()</function> function
succeeds and sets the <constant>POLLERR</constant> flag in the
<structfield>revents</structfield> field.
> For output devices this
> +same situation will cause <function>poll()</function> to succeed
> +as well, but it sets the <constant>POLLOUT</constant> and
> +<constant>POLLWRNORM</constant> flags in the
> <structfield>revents</structfield>
> +field.</para>
>
> <para>When use of the <function>read()</function> function has
> been negotiated and the driver does not capture yet, the
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-09-20 18:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-20 8:56 [PATCH 0/3] vb2: fix VBI/poll regression Hans Verkuil
2014-09-20 8:56 ` [PATCH 1/3] " Hans Verkuil
2014-09-20 9:08 ` James Harper
2014-09-20 9:14 ` Hans Verkuil
2014-09-20 10:04 ` Mauro Carvalho Chehab
2014-09-20 10:08 ` Mauro Carvalho Chehab
2014-09-20 10:14 ` Mauro Carvalho Chehab
2014-09-20 18:32 ` Laurent Pinchart
2014-09-20 19:12 ` Hans Verkuil
2014-09-20 8:56 ` [PATCH 2/3] DocBook media: fix the poll() 'no QBUF' documentation Hans Verkuil
2014-09-20 18:35 ` Laurent Pinchart [this message]
2014-09-20 8:56 ` [PATCH 3/3] DocBook media: improve the poll() documentation Hans Verkuil
2014-09-20 9:51 ` [PATCH 0/3] vb2: fix VBI/poll regression Mauro Carvalho Chehab
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=3467173.gE0lEHfa57@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.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.