From: Laurent Pinchart Date: Sun, 23 Mar 2014 15:25:09 +0000 (+0100) Subject: usb: gadget: uvc: Set the V4L2 buffer field to V4L2_FIELD_NONE X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f17388cc29090a94268256f1a17445e715bc5d94;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: uvc: Set the V4L2 buffer field to V4L2_FIELD_NONE The UVC gadget driver doesn't support interlaced video but left the buffer field uninitialized. Set it to V4L2_FIELD_NONE. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Felipe Balbi Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/uvc_queue.c b/drivers/usb/gadget/uvc_queue.c index 9ac4ffe19014..305eb491c919 100644 --- a/drivers/usb/gadget/uvc_queue.c +++ b/drivers/usb/gadget/uvc_queue.c @@ -380,6 +380,7 @@ static struct uvc_buffer *uvc_queue_next_buffer(struct uvc_video_queue *queue, else nextbuf = NULL; + buf->buf.v4l2_buf.field = V4L2_FIELD_NONE; buf->buf.v4l2_buf.sequence = queue->sequence++; v4l2_get_timestamp(&buf->buf.v4l2_buf.timestamp);