summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-16 10:01:13 -0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-01-31 09:29:47 -0200
commit28d77c21cbeb2c6039d48ef88401b87a56a7a07f (patch)
tree71c5b3ab4c34e2d2ae92638c33401916ed5f19a7 /Kconfig
parent065e5a31497d8f285da06eac1c8d8e86c723af47 (diff)
downloadlinux-28d77c21cbeb2c6039d48ef88401b87a56a7a07f.tar.bz2
media: vb2: add buf_out_validate callback
When queueing a buffer to a request the 'field' value is not validated. That field is only validated when the _buf_prepare() is called, which happens when the request is queued. However, this validation should happen at QBUF time, since you want to know about this as soon as possible. Also, the spec requires that the 'field' value is validated at QBUF time. This patch adds a new buf_out_validate callback to validate the output buffer at buf_prepare time or when QBUF queues an unprepared buffer to a request. This callback is mandatory for output queues that support requests. This issue was found by v4l2-compliance since it failed to replace V4L2_FIELD_ANY by a proper field value when testing the vivid video output in combination with requests. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions