[media] v4l: ti-vpe: Allow DMABUF buffer type support
authorArchit Taneja <archit@ti.com>
Thu, 13 Mar 2014 11:44:06 +0000 (08:44 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 17:26:54 +0000 (14:26 -0300)
commit668f91d4997634a78c947b210e19309726c30693
tree988ec6197c13839ab9d571c26bc1309d2012d0bc
parentb2c9472f0559ba23fa0c2cf565577d1cd9421e50
[media] v4l: ti-vpe: Allow DMABUF buffer type support

For OMAP and DRA7x, we generally allocate video and graphics buffers through
omapdrm since the corresponding omap-gem driver provides DMM-Tiler backed
contiguous buffers. omapdrm is a dma-buf exporter. These buffers are used by
other drivers in the video pipeline.

Add VB2_DMABUF flag to the io_modes of the vb2 output and capture queues. This
allows the driver to import dma shared buffers.

Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/ti-vpe/vpe.c