linux/drivers/media
Philipp Zabel c16218402a [media] videobuf2: return -EPIPE from DQBUF after the last buffer
If the last buffer was dequeued from a capture queue, let poll return
immediately and let DQBUF return -EPIPE to signal there will no more
buffers to dequeue until STREAMOFF.
The driver signals the last buffer by setting the V4L2_BUF_FLAG_LAST.
To reenable dequeuing on the capture queue, the driver must explicitly
call vb2_clear_last_buffer_queued. The last buffer queued flag is
cleared automatically during STREAMOFF.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-05-12 03:53:06 -03:00
..
common media: replace bellow -> below 2015-05-08 14:48:48 -03:00
dvb-core Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus 2015-04-21 09:44:55 -03:00
dvb-frontends media: replace bellow -> below 2015-05-08 14:48:48 -03:00
firewire [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" 2014-11-25 13:30:31 -02:00
i2c media: replace bellow -> below 2015-05-08 14:48:48 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] saa7164: fix compiler warning 2015-05-01 09:09:58 -03:00
platform [media] media: platform: s5p: Constify platform_device_id 2015-05-12 03:49:22 -03:00
radio [media] radio: fix error return code 2015-05-01 07:02:16 -03:00
rc [media] redrat3: change return argument on redrat3_send_cmd() to int 2015-05-01 06:10:38 -03:00
tuners media: replace bellow -> below 2015-05-08 14:48:48 -03:00
usb [media] v4l2: replace s_mbus_fmt by set_fmt in bridge drivers 2015-05-01 09:01:16 -03:00
v4l2-core [media] videobuf2: return -EPIPE from DQBUF after the last buffer 2015-05-12 03:53:06 -03:00
Kconfig media controller: add EXPERIMENTAL to Kconfig option for DVB support 2015-05-08 14:48:49 -03:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00