diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-10-11 06:32:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-10-21 07:39:10 -0300 |
commit | f8cca8c97a63d77f48334cde81d15014f43530ef (patch) | |
tree | bad32414191b8dfb2242ffbddaf7a9daf9e26082 /Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst | |
parent | 137272cdf7cc5be835f44216e6003769d1638480 (diff) |
media: v4l2-mem2mem: support held capture buffers
Check for held buffers that are ready to be returned to vb2 in
__v4l2_m2m_try_queue(). This avoids drivers having to handle this
case.
Add v4l2_m2m_buf_done_and_job_finish() to correctly return source
and destination buffers and mark the job as finished while taking
a held destination buffer into account (i.e. that buffer won't be
returned). This has to be done while job_spinlock is held to avoid
race conditions.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst')
0 files changed, 0 insertions, 0 deletions