remarkable-linux/drivers/media
Sakari Ailus 6d058c5643 [media] vb2: Only requeue buffers immediately once streaming is started
Buffers can be returned back to videobuf2 in driver's streamon handler. In
this case vb2_buffer_done() with buffer state VB2_BUF_STATE_QUEUED will
cause the driver's buf_queue vb2 operation to be called, queueing the same
buffer again only to be returned to videobuf2 using vb2_buffer_done() and so
on.

Add a new buffer state VB2_BUF_STATE_REQUEUEING which, when used as the
state argument to vb2_buffer_done(), will result in buffers queued to the
driver. Using VB2_BUF_STATE_QUEUED will leave the buffer to videobuf2, as it
was before "[media] vb2: allow requeuing buffers while streaming".

Fixes: ce0eff016f ("[media] vb2: allow requeuing buffers while streaming")

[mchehab@osg.samsung.com: fix warning: enumeration value 'VB2_BUF_STATE_REQUEUEING' not handled in switch]

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: stable@vger.kernel.org # for v4.1
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-07-17 09:00:12 -03:00
..
common [media] b2c2: Add option to skip the first 6 pid filters 2015-06-09 20:57:56 -03:00
dvb-core [media] dvb-core: prevent some corruption the legacy ioctl 2015-06-10 11:47:56 -03:00
dvb-frontends [media] media/dvb: fix ts2020.c Kconfig and build 2015-07-01 16:31:28 -03:00
firewire [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
i2c [media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16 2015-06-10 11:43:19 -03:00
mmc
pci [media] vb2: Only requeue buffers immediately once streaming is started 2015-07-17 09:00:12 -03:00
platform [media] omap3isp: remove unused var 2015-06-24 08:38:29 -03:00
radio [media] si470x: cleanup define namespace 2015-06-22 15:25:31 -03:00
rc [media] use CONFIG_PM_SLEEP for suspend/resume 2015-06-24 08:38:20 -03:00
tuners [media] tuner-i2c: be consistent with I2C declaration 2015-06-23 10:01:45 -03:00
usb [media] lmedm04: fix the range for relative measurements 2015-06-24 08:38:30 -03:00
v4l2-core [media] vb2: Only requeue buffers immediately once streaming is started 2015-07-17 09:00:12 -03:00
Kconfig media controller: add EXPERIMENTAL to Kconfig option for DVB support 2015-05-08 14:48:49 -03:00
Makefile
media-device.c
media-devnode.c
media-entity.c