linux/drivers/media
Hans Verkuil 28d77c21cb 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>
2019-01-31 09:29:47 -02:00
..
cec media: cec: keep track of outstanding transmits 2018-11-23 05:56:14 -05:00
common media: vb2: add buf_out_validate callback 2019-01-31 09:29:47 -02:00
dvb-core media: dvb_frontend: add debug message for frequency intervals 2018-11-23 11:59:45 -05:00
dvb-frontends media: dvb: Add check on sp8870_readreg 2019-01-16 11:45:33 -05:00
firewire media: firewire: Fix app_info parameter type in avc_ca{,_app}_info 2018-12-05 05:34:33 -05:00
i2c media: ov2640: fix initial try format 2019-01-25 11:02:04 -02:00
mmc media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
pci media: ivtv: add parameter to enable ivtvfb on x86 PAT systems 2019-01-21 15:33:26 -02:00
platform media: mtk-vcodec: Using common interface to manage vdec/venc clock 2019-01-31 09:24:54 -02:00
radio media: si470x-i2c: Add optional reset-gpio support 2019-01-21 15:36:18 -02:00
rc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-12-27 13:04:52 -08:00
spi media: cxd2880-spi: fix two memory leaks of dvb_spi 2019-01-16 11:44:29 -05:00
tuners media: si2157: declare its own pads 2018-09-17 13:16:19 -04:00
usb media: gspca: ov534-ov772x: remove unnecessary COM3 initialization 2019-01-16 14:00:46 -05:00
v4l2-core media: media/v4l2-core/videobuf-vmalloc.c: Remove dead code 2019-01-21 15:46:22 -02:00
Kconfig media: Add a Kconfig option for the Request API 2018-12-05 13:07:43 -05:00
Makefile media: media-request: implement media requests 2018-08-31 11:04:51 -04:00
media-device.c media: Add a Kconfig option for the Request API 2018-12-05 13:07:43 -05:00
media-devnode.c
media-entity.c media: v4l2-mc: switch it to use the new approach to setup pipelines 2018-09-17 13:16:19 -04:00
media-request.c media: media-request: Add compat ioctl 2018-11-20 12:53:27 -05:00