linux/drivers/media
Javier Martinez Canillas 82019205e3 [media] vb2: remove TODO comment for dma-buf in QBUF
There is a TODO comment about the dma-buf being mapped in VIDIOC_QBUF
instead of doing it closer to when the actual DMA is going to happen
when the buffers are queued in the driver (i.e: __enqueue_in_driver).

But there is a reason to do it earlier in QBUF, and is that userspace
has no way to know if a exported dma-buf can be imported successfully
and so relies on QBUF succeeding as indication that the dma-buf mapped.

If QBUF fails, the application can fallback to another streaming I/O
method. But moving the dma-buf mapping later when queueing the buffers
can be too late for userspace to recover, since it may had dropped the
buffer(s) already when it knows that the dma-buf mapping failed.

So remove the TODO instead and change the comment to explain this.

Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-08-24 10:09:33 -03:00
..
common [media] v4l2-tpg-core: drop SYCC, use higher precision 601 conversion matrix 2016-08-24 08:36:11 -03:00
dvb-core [media] doc-rst: add some needed escape codes 2016-07-23 08:05:02 -03:00
dvb-frontends [media] media: dvb-frontends: rtl2832_sdr: don't print error when allocating urb fails 2016-08-24 08:46:41 -03:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c [media] v4l2-subdev: rename cropcap to g_pixelaspect 2016-08-24 09:55:15 -03:00
mmc
pci [media] zoran: convert g/s_crop to g/s_selection 2016-08-24 09:51:15 -03:00
platform [media] vivid: return -ENODATA if the current input doesn't support g/s_selection 2016-08-24 09:57:01 -03:00
radio [media] media: radio: si470x: radio-si470x-usb: don't print error when allocating urb fails 2016-08-24 08:46:58 -03:00
rc [media] media: rc: redrat3: don't print error when allocating urb fails 2016-08-24 08:47:41 -03:00
tuners [media] it913x: do not allow driver unbind 2016-07-08 17:01:23 -03:00
usb [media] pvrusb2: convert g/s_crop to g/s_selection 2016-08-24 09:54:30 -03:00
v4l2-core [media] vb2: remove TODO comment for dma-buf in QBUF 2016-08-24 10:09:33 -03:00
cec-edid.c [media] cec-edid: add module for EDID CEC helper functions 2016-06-28 09:45:51 -03:00
Kconfig [media] cec: fix Kconfig dependency problems 2016-07-08 18:34:00 -03:00
Makefile [media] cec: fix Kconfig dependency problems 2016-07-08 18:34:00 -03:00
media-device.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] v4l2-core: Add support for touch devices 2016-08-23 16:28:04 -03:00