Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1728382
| From | Gustavo Padovan <gustavo@padovan.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 08/15] [media] vb2: add .buffer_queued() to notify queueing in the driver |
| Date | 2017-09-07 20:50 +0200 |
| Message-ID | <una2f-3SJ-49@gated-at.bofh.it> (permalink) |
| References | <una2d-3SJ-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Gustavo Padovan <gustavo.padovan@collabora.com>
With the upcoming explicit synchronization support to V4L2 we need a
way to notify userspace when buffers are queued to the driver - buffers
with fences attached to it can only be queued once the fence signal, so
the queueing to the driver might be deferred.
Yet, userspace still wants to be notified, so the buffer_queued() callback
was added to vb2_buf_ops for that purpose.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
---
include/media/videobuf2-core.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
index 41cda762ff0a..5ed8d3402474 100644
--- a/include/media/videobuf2-core.h
+++ b/include/media/videobuf2-core.h
@@ -415,6 +415,8 @@ struct vb2_ops {
* will return an error.
* @copy_timestamp: copy the timestamp from a userspace structure to
* the vb2_buffer struct.
+ * @buffer_queued: VB2 uses this to notify the VB2-client that the buffer
+ * was queued to the driver.
*/
struct vb2_buf_ops {
int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb);
@@ -422,6 +424,7 @@ struct vb2_buf_ops {
int (*fill_vb2_buffer)(struct vb2_buffer *vb, const void *pb,
struct vb2_plane *planes);
void (*copy_timestamp)(struct vb2_buffer *vb, const void *pb);
+ void (*buffer_queued)(struct vb2_buffer *vb);
};
/**
--
2.13.5
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 00/15] V4L2 Explicit Synchronization support Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
[PATCH v3 14/15] fs/files: export close_fd() symbol Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
Re: [PATCH v3 14/15] fs/files: export close_fd() symbol Eric Biggers <ebiggers3@gmail.com> - 2017-09-07 21:00 +0200
Re: [PATCH v3 14/15] fs/files: export close_fd() symbol Al Viro <viro@ZenIV.linux.org.uk> - 2017-09-07 22:40 +0200
Re: [PATCH v3 14/15] fs/files: export close_fd() symbol Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 23:30 +0200
Re: [PATCH v3 14/15] fs/files: export close_fd() symbol Al Viro <viro@ZenIV.linux.org.uk> - 2017-09-08 00:10 +0200
Re: [PATCH v3 14/15] fs/files: export close_fd() symbol Hans Verkuil <hverkuil@xs4all.nl> - 2017-09-08 00:10 +0200
Re: [PATCH v3 14/15] fs/files: export close_fd() symbol Gustavo Padovan <gustavo.padovan@collabora.com> - 2017-09-08 00:20 +0200
[PATCH v3 08/15] [media] vb2: add .buffer_queued() to notify queueing in the driver Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
[PATCH v3 03/15] [media] vb2: check earlier if stream can be started Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
[PATCH v3 07/15] [media] v4l: add V4L2_EVENT_BUF_QUEUED event Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
[PATCH v3 12/15] [media] vb2: add videobuf2 dma-buf fence helpers Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
[PATCH v3 09/15] [media] v4l: add support to BUF_QUEUED event Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
[PATCH v3 02/15] [media] vb2: add explicit fence user API Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
[PATCH v3 13/15] [media] vb2: add infrastructure to support out-fences Gustavo Padovan <gustavo@padovan.org> - 2017-09-07 20:50 +0200
csiph-web