[media] media: davinci: vpif_capture: release buffers in case start_streaming() call...
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Fri, 16 May 2014 13:33:35 +0000 (10:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 22:20:54 +0000 (19:20 -0300)
commitbebd8d12295dbeedaa9d6b309ed63b7fcd31e0e5
treee030d01bc2ed39aec66cca83caac2b15f34a31d8
parent999ba69bf35c6ab0bdb0bd65cb0dd67cb1b96d99
[media] media: davinci: vpif_capture: release buffers in case start_streaming() call back fails

this patch adds support to release the buffer by calling
vb2_buffer_done(), with state marked as VB2_BUF_STATE_QUEUED
if start_streaming() call back fails.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/davinci/vpif_capture.c