[media] vb2: return ENOBUFS in start_streaming in case of too few buffers
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 13 Dec 2013 16:13:44 +0000 (13:13 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 09:13:49 +0000 (07:13 -0200)
commit79aeb3f3083a8a795467eae429cb2d6faf482f32
treee4cdd6d755b879d1de5eaf63a70d0354f499fdca
parentc108e660f9196a4cebea79fbd650ed6850934fcc
[media] vb2: return ENOBUFS in start_streaming in case of too few buffers

This works together with the retry_start_streaming mechanism to allow userspace
to start streaming even if not all required buffers have been queued.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Cc: Tomasz Stanislawski <t.stanislaws@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Kamil Debski <k.debski@samsung.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/davinci/vpbe_display.c
drivers/media/platform/davinci/vpif_capture.c
drivers/media/platform/davinci/vpif_display.c
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
drivers/media/platform/s5p-tv/mixer_video.c
drivers/media/platform/soc_camera/mx2_camera.c
drivers/staging/media/davinci_vpfe/vpfe_video.c