mirror of https://gitee.com/openkylin/linux.git
[media] media: blackfin: bfin_capture: add support for VB2_DMABUF
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>
This commit is contained in:
parent
8df229bdec
commit
70753b5e70
|
@ -856,7 +856,7 @@ static int bcap_probe(struct platform_device *pdev)
|
||||||
/* initialize queue */
|
/* initialize queue */
|
||||||
q = &bcap_dev->buffer_queue;
|
q = &bcap_dev->buffer_queue;
|
||||||
q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
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->drv_priv = bcap_dev;
|
||||||
q->buf_struct_size = sizeof(struct bcap_buffer);
|
q->buf_struct_size = sizeof(struct bcap_buffer);
|
||||||
q->ops = &bcap_video_qops;
|
q->ops = &bcap_video_qops;
|
||||||
|
|
Loading…
Reference in New Issue