]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
[media] media: blackfin: bfin_capture: add support for VB2_DMABUF
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Sun, 8 Mar 2015 14:40:49 +0000 (11:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:11:45 +0000 (18:11 -0300)
this patch adds support for VB2_DMABUF.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Tested-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/blackfin/bfin_capture.c

index ec8227fdd98cf6db0596de58fc8d8a98df97331c..6c58cea8df3373e43a3746da91848f7269214878 100644 (file)
@@ -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;