linux/drivers/media/pci/cobalt
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
..
Kconfig [media] media/pci/cobalt: fix Kconfig and build when SND is not enabled 2015-07-01 16:31:33 -03:00
Makefile
cobalt-alsa-main.c
cobalt-alsa-pcm.c
cobalt-alsa-pcm.h
cobalt-alsa.h
cobalt-cpld.c [media] cobalt: fix 64-bit division 2015-06-10 10:01:16 -03:00
cobalt-cpld.h
cobalt-driver.c [media] adv7511: log the currently set infoframes 2015-06-09 17:30:39 -03:00
cobalt-driver.h [media] cobalt: support transfer function 2015-06-05 11:51:01 -03:00
cobalt-flash.c [media] cobalt: fix sparse warnings 2015-05-30 11:20:50 -03:00
cobalt-flash.h
cobalt-i2c.c [media] cobalt: fix sparse warnings 2015-05-30 11:21:30 -03:00
cobalt-i2c.h
cobalt-irq.c [media] vb2: Only requeue buffers immediately once streaming is started 2015-07-17 09:00:12 -03:00
cobalt-irq.h
cobalt-omnitek.c [media] cobalt: fix compiler warnings on 32 bit OSes 2015-05-30 11:19:51 -03:00
cobalt-omnitek.h
cobalt-v4l2.c [media] cobalt: fix 64-bit division 2015-06-10 10:01:16 -03:00
cobalt-v4l2.h
m00233_video_measure_memmap_package.h
m00235_fdma_packer_memmap_package.h
m00389_cvi_memmap_package.h
m00460_evcnt_memmap_package.h
m00473_freewheel_memmap_package.h
m00479_clk_loss_detector_memmap_package.h
m00514_syncgen_flow_evcnt_memmap_package.h