diff options
author | Ezequiel Garcia <ezequiel@collabora.com> | 2018-06-15 15:07:26 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-07-04 08:00:53 -0400 |
commit | b53e19e16153ff8a0a560151ed27c3bc8d846de2 (patch) | |
tree | 6c360e8e9d54f2a8a5dd51771682237ac4cb42de | |
parent | f1db5d978d88c75cfb1bcac74fbf06f77b86b7c3 (diff) | |
download | talos-obmc-linux-b53e19e16153ff8a0a560151ed27c3bc8d846de2.tar.gz talos-obmc-linux-b53e19e16153ff8a0a560151ed27c3bc8d846de2.zip |
media: s5p-g2d: Implement wait_prepare and wait_finish
This driver is currently specifying a vb2_queue lock,
which means it straightforward to implement wait_prepare
and wait_finish.
Having these callbacks releases the queue lock while blocking,
which improves latency by allowing for example streamoff
or qbuf operations while waiting in dqbuf.
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/platform/s5p-g2d/g2d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c index 3735c204e9ac..6b1c23463009 100644 --- a/drivers/media/platform/s5p-g2d/g2d.c +++ b/drivers/media/platform/s5p-g2d/g2d.c @@ -142,6 +142,8 @@ static const struct vb2_ops g2d_qops = { .queue_setup = g2d_queue_setup, .buf_prepare = g2d_buf_prepare, .buf_queue = g2d_buf_queue, + .wait_prepare = vb2_ops_wait_prepare, + .wait_finish = vb2_ops_wait_finish, }; static int queue_init(void *priv, struct vb2_queue *src_vq, |