From: Lad, Prabhakar Date: Sun, 8 Mar 2015 14:40:49 +0000 (-0300) Subject: [media] media: blackfin: bfin_capture: add support for VB2_DMABUF X-Git-Tag: firefly_0821_release~176^2~795^2~1220 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=70753b5e70033c1f0ef649f6024c76615621f83a;p=firefly-linux-kernel-4.4.55.git [media] media: blackfin: bfin_capture: add support for VB2_DMABUF this patch adds support for VB2_DMABUF. Signed-off-by: Lad, Prabhakar Tested-by: Scott Jiang Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c index ec8227fdd98c..6c58cea8df33 100644 --- a/drivers/media/platform/blackfin/bfin_capture.c +++ b/drivers/media/platform/blackfin/bfin_capture.c @@ -856,7 +856,7 @@ static int bcap_probe(struct platform_device *pdev) /* initialize queue */ q = &bcap_dev->buffer_queue; q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - q->io_modes = VB2_MMAP; + q->io_modes = VB2_MMAP | VB2_DMABUF; q->drv_priv = bcap_dev; q->buf_struct_size = sizeof(struct bcap_buffer); q->ops = &bcap_video_qops;