From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Gustavo Padovan <gustavo@padovan.org>
Cc: linux-media@vger.kernel.org, Hans Verkuil <hverkuil@xs4all.nl>,
Javier Martinez Canillas <javier@osg.samsung.com>,
Shuah Khan <shuahkh@osg.samsung.com>,
Gustavo Padovan <gustavo.padovan@collabora.com>
Subject: Re: [PATCH 06/12] [media] v4l: add V4L2_EVENT_BUF_QUEUED event
Date: Fri, 30 Jun 2017 09:00:18 -0300 [thread overview]
Message-ID: <20170630090018.3a2f19c1@vento.lan> (raw)
In-Reply-To: <20170616073915.5027-7-gustavo@padovan.org>
Em Fri, 16 Jun 2017 16:39:09 +0900
Gustavo Padovan <gustavo@padovan.org> escreveu:
> From: Gustavo Padovan <gustavo.padovan@collabora.com>
>
> Add a new event the userspace can subscribe to receive notifications
> when a buffer is queued onto the driver. The event provides the index of
> the queued buffer.
If you're changing uAPI, you need to update media uAPI book as well.
>
> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
> ---
> include/uapi/linux/videodev2.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
> index 750d511..c2eda75 100644
> --- a/include/uapi/linux/videodev2.h
> +++ b/include/uapi/linux/videodev2.h
> @@ -2150,6 +2150,7 @@ struct v4l2_streamparm {
> #define V4L2_EVENT_FRAME_SYNC 4
> #define V4L2_EVENT_SOURCE_CHANGE 5
> #define V4L2_EVENT_MOTION_DET 6
> +#define V4L2_EVENT_BUF_QUEUED 7
> #define V4L2_EVENT_PRIVATE_START 0x08000000
>
> /* Payload for V4L2_EVENT_VSYNC */
> @@ -2202,6 +2203,10 @@ struct v4l2_event_motion_det {
> __u32 region_mask;
> };
>
> +struct v4l2_event_buf_queued {
> + __u32 index;
> +};
> +
> struct v4l2_event {
> __u32 type;
> union {
> @@ -2210,6 +2215,7 @@ struct v4l2_event {
> struct v4l2_event_frame_sync frame_sync;
> struct v4l2_event_src_change src_change;
> struct v4l2_event_motion_det motion_det;
> + struct v4l2_event_buf_queued buf_queued;
> __u8 data[64];
> } u;
> __u32 pending;
--
Thanks,
Mauro
next prev parent reply other threads:[~2017-06-30 12:00 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-16 7:39 [PATCH 00/12] V4L2 explicit synchronization support Gustavo Padovan
2017-06-16 7:39 ` [PATCH 01/12] [media] vb2: add explicit fence user API Gustavo Padovan
2017-06-18 14:09 ` kbuild test robot
2017-06-18 14:58 ` kbuild test robot
2017-06-26 15:39 ` Gustavo Padovan
2017-07-04 5:57 ` Tomasz Figa
2017-07-04 6:27 ` Alexandre Courbot
2017-06-30 11:12 ` Mauro Carvalho Chehab
2017-06-16 7:39 ` [PATCH 02/12] [media] vb2: split out queueing from vb_core_qbuf() Gustavo Padovan
2017-06-30 11:15 ` Mauro Carvalho Chehab
2017-07-06 7:46 ` Hans Verkuil
2017-07-07 1:04 ` Gustavo Padovan
2017-06-16 7:39 ` [PATCH 03/12] [media] vb2: add in-fence support to QBUF Gustavo Padovan
2017-06-18 15:36 ` kbuild test robot
2017-06-30 11:53 ` Mauro Carvalho Chehab
2017-07-03 18:16 ` Gustavo Padovan
2017-07-06 9:43 ` Hans Verkuil
2017-07-07 1:12 ` Gustavo Padovan
2017-07-06 8:29 ` Hans Verkuil
2017-07-07 1:53 ` Gustavo Padovan
2017-07-07 7:15 ` Hans Verkuil
2017-07-10 19:27 ` Gustavo Padovan
2017-07-06 9:18 ` Hans Verkuil
2017-07-07 2:00 ` Gustavo Padovan
2017-07-07 7:06 ` Hans Verkuil
2017-07-10 19:02 ` Gustavo Padovan
2017-07-10 20:26 ` Gustavo Padovan
2017-07-11 5:57 ` Hans Verkuil
2017-07-11 12:56 ` Gustavo Padovan
2017-06-16 7:39 ` [PATCH 04/12] [media] uvc: enable subscriptions to other events Gustavo Padovan
2017-07-07 14:38 ` Shuah Khan
2017-07-10 19:38 ` Gustavo Padovan
2017-07-26 0:26 ` Gustavo Padovan
2017-06-16 7:39 ` [PATCH 05/12] [media] vivid: assign the specific device to the vb2_queue->dev Gustavo Padovan
2017-07-06 8:36 ` Hans Verkuil
2017-07-07 17:15 ` Shuah Khan
2017-07-10 19:42 ` Gustavo Padovan
2017-07-26 0:17 ` Gustavo Padovan
2017-06-16 7:39 ` [PATCH 06/12] [media] v4l: add V4L2_EVENT_BUF_QUEUED event Gustavo Padovan
2017-06-30 12:00 ` Mauro Carvalho Chehab [this message]
2017-06-16 7:39 ` [PATCH 07/12] [media] v4l: add support to BUF_QUEUED event Gustavo Padovan
2017-06-30 12:04 ` Mauro Carvalho Chehab
2017-07-03 18:36 ` Gustavo Padovan
2017-07-06 9:34 ` Hans Verkuil
2017-07-10 19:45 ` Gustavo Padovan
2017-07-06 8:47 ` Hans Verkuil
2017-06-16 7:39 ` [PATCH 08/12] [media] vb2: add 'ordered' property to queues Gustavo Padovan
2017-06-16 16:56 ` Nicolas Dufresne
2017-06-26 15:22 ` Gustavo Padovan
2017-07-06 9:08 ` Hans Verkuil
2017-06-16 7:39 ` [PATCH 09/12] [media] vivid: mark vivid queues as ordered Gustavo Padovan
2017-07-06 8:37 ` Hans Verkuil
2017-07-07 17:31 ` Shuah Khan
2017-07-10 19:47 ` Gustavo Padovan
2017-06-16 7:39 ` [PATCH 10/12] [media] vb2: add videobuf2 dma-buf fence helpers Gustavo Padovan
2017-06-16 7:39 ` [PATCH 11/12] [media] vb2: add infrastructure to support out-fences Gustavo Padovan
2017-06-16 7:39 ` [PATCH 12/12] [media] vb2: add out-fence support to QBUF Gustavo Padovan
2017-07-06 9:27 ` Hans Verkuil
2017-07-06 9:29 ` Hans Verkuil
2017-07-10 20:19 ` Gustavo Padovan
2017-06-30 12:18 ` [PATCH 00/12] V4L2 explicit synchronization support Mauro Carvalho Chehab
2017-07-03 18:40 ` Gustavo Padovan
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=20170630090018.3a2f19c1@vento.lan \
--to=mchehab@osg.samsung.com \
--cc=gustavo.padovan@collabora.com \
--cc=gustavo@padovan.org \
--cc=hverkuil@xs4all.nl \
--cc=javier@osg.samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=shuahkh@osg.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 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).