Commit 09714569 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

media: vimc: add USERPTR support

Add VB2_USERPTR to the vimc capture device.
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: default avatarHelen Koike <helen.koike@collabora.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent a8566d79
...@@ -429,7 +429,7 @@ static int vimc_cap_comp_bind(struct device *comp, struct device *master, ...@@ -429,7 +429,7 @@ static int vimc_cap_comp_bind(struct device *comp, struct device *master,
/* Initialize the vb2 queue */ /* Initialize the vb2 queue */
q = &vcap->queue; q = &vcap->queue;
q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 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->drv_priv = vcap;
q->buf_struct_size = sizeof(struct vimc_cap_buffer); q->buf_struct_size = sizeof(struct vimc_cap_buffer);
q->ops = &vimc_cap_qops; q->ops = &vimc_cap_qops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment