aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2019-01-14 09:58:26 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-02-18 10:55:29 -0500
commit09714569969cfe5e5b51fa5b0d9224ce38744e76 (patch)
tree47a1e6ae5dd905663355374736760e25e83e775c /drivers/media/platform
parentmedia: vim2m: fix build breakage due to a merge conflict (diff)
downloadlinux-dev-09714569969cfe5e5b51fa5b0d9224ce38744e76.tar.xz
linux-dev-09714569969cfe5e5b51fa5b0d9224ce38744e76.zip
media: vimc: add USERPTR support
Add VB2_USERPTR to the vimc capture device. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Helen Koike <helen.koike@collabora.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/vimc/vimc-capture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vimc/vimc-capture.c b/drivers/media/platform/vimc/vimc-capture.c
index a6f8715d2b44..ea869631a3f6 100644
--- a/drivers/media/platform/vimc/vimc-capture.c
+++ b/drivers/media/platform/vimc/vimc-capture.c
@@ -429,7 +429,7 @@ static int vimc_cap_comp_bind(struct device *comp, struct device *master,
/* Initialize the vb2 queue */
q = &vcap->queue;
q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
- q->io_modes = VB2_MMAP | VB2_DMABUF;
+ q->io_modes = VB2_MMAP | VB2_DMABUF | VB2_USERPTR;
q->drv_priv = vcap;
q->buf_struct_size = sizeof(struct vimc_cap_buffer);
q->ops = &vimc_cap_qops;