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>
This commit is contained in:
parent
a8566d79f8
commit
0971456996
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user