From: Tomasz Stanislawski Date: Thu, 14 Jun 2012 13:37:47 +0000 (-0300) Subject: [media] v4l: vivi: support for dmabuf importing X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a626f0ac9dec1d28d16f62eed6f5ea0879ddb4e0;p=openwrt%2Fstaging%2Fblogic.git [media] v4l: vivi: support for dmabuf importing This patch enhances VIVI driver with a support for importing a buffer from DMABUF file descriptors. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Acked-by: Hans Verkuil Tested-by: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index ef0fc276f7e7..0d59b9db83cb 100644 --- a/drivers/media/platform/vivi.c +++ b/drivers/media/platform/vivi.c @@ -1302,7 +1302,7 @@ static int __init vivi_create_instance(int inst) /* initialize queue */ q = &dev->vb_vidq; q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ; + q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->drv_priv = dev; q->buf_struct_size = sizeof(struct vivi_buffer); q->ops = &vivi_video_qops;