aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvc_queue.c
diff options
context:
space:
mode:
authorJavier Martin <javier.martin@vista-silicon.com>2012-01-02 09:12:23 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-19 13:07:13 -0400
commitab86e9e03d322396907dc8eb9215b136c728773e (patch)
treef47643df2491c1d6ee2e3fabb8bce76ac5aed0a5 /drivers/media/video/uvc/uvc_queue.c
parent1a5e4c867c611ed17db837f8f900b44c72990cc4 (diff)
[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>
Diffstat (limited to 'drivers/media/video/uvc/uvc_queue.c')
-rw-r--r--drivers/media/video/uvc/uvc_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_queue.c b/drivers/media/video/uvc/uvc_queue.c
index 518f77d3a4d8..8f54e24e3f35 100644
--- a/drivers/media/video/uvc/uvc_queue.c
+++ b/drivers/media/video/uvc/uvc_queue.c
@@ -126,7 +126,7 @@ void uvc_queue_init(struct uvc_video_queue *queue, enum v4l2_buf_type type,
126 int drop_corrupted) 126 int drop_corrupted)
127{ 127{
128 queue->queue.type = type; 128 queue->queue.type = type;
129 queue->queue.io_modes = VB2_MMAP; 129 queue->queue.io_modes = VB2_MMAP | VB2_USERPTR;
130 queue->queue.drv_priv = queue; 130 queue->queue.drv_priv = queue;
131 queue->queue.buf_struct_size = sizeof(struct uvc_buffer); 131 queue->queue.buf_struct_size = sizeof(struct uvc_buffer);
132 queue->queue.ops = &uvc_queue_qops; 132 queue->queue.ops = &uvc_queue_qops;