upstream: [media] media: davinci: vpbe: release buffers in case start_streaming call...
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Mon, 14 Apr 2014 14:52:31 +0000 (11:52 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:59 +0000 (14:26 +0900)
commit011314839d3a1a78e2ebbb48693205359f7327d3
treeea2ec1ec08b98c945fea1f4c89eb8d1f00b2618c
parent62577af1b844031cc307f40dcbb28ab064f2eb5c
upstream: [media] media: davinci: vpbe: 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/vpbe_display.c