Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] uvcvideo: Allow userptr IO mode

Userptr can be very useful if a UVC camera is requested to use video
buffers allocated by another processing device. So that buffers don't
need to be copied.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Javier Martin and committed by
Mauro Carvalho Chehab
ab86e9e0 1a5e4c86

+1 -1
+1 -1
drivers/media/video/uvc/uvc_queue.c
··· 126 126 int drop_corrupted) 127 127 { 128 128 queue->queue.type = type; 129 - queue->queue.io_modes = VB2_MMAP; 129 + queue->queue.io_modes = VB2_MMAP | VB2_USERPTR; 130 130 queue->queue.drv_priv = queue; 131 131 queue->queue.buf_struct_size = sizeof(struct uvc_buffer); 132 132 queue->queue.ops = &uvc_queue_qops;