summaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil2018-06-03 11:02:27 +0200
committerMauro Carvalho Chehab2018-08-31 17:16:10 +0200
commit55028695c3bbd8f202b969a5a702caa7d7a51675 (patch)
treef779079ae468634929eacee087349b3e425667a8 /drivers/media/v4l2-core/v4l2-ioctl.c
parentmedia: davinci_vpfe: remove bogus vb2->state check (diff)
downloadkernel-qcow2-linux-55028695c3bbd8f202b969a5a702caa7d7a51675.tar.gz
kernel-qcow2-linux-55028695c3bbd8f202b969a5a702caa7d7a51675.tar.xz
kernel-qcow2-linux-55028695c3bbd8f202b969a5a702caa7d7a51675.zip
media: vb2: drop VB2_BUF_STATE_PREPARED, use bool prepared/synced instead
The PREPARED state becomes a problem with the request API: a buffer could be PREPARED but dequeued, or PREPARED and in state IN_REQUEST. PREPARED is really not a state as such, but more a property of the buffer. So make new 'prepared' and 'synced' bools instead to remember whether the buffer is prepared and/or synced or not. V4L2_BUF_FLAG_PREPARED is only set if the buffer is both synced and prepared and in the DEQUEUED state. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ioctl.c')
0 files changed, 0 insertions, 0 deletions