summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-06-03 05:02:27 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-31 11:16:10 -0400
commit55028695c3bbd8f202b969a5a702caa7d7a51675 (patch)
treef779079ae468634929eacee087349b3e425667a8 /virt/kvm
parent559cd0a3e4848050810d125ffba36dab1e686c9d (diff)
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 'virt/kvm')
0 files changed, 0 insertions, 0 deletions