diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-03-23 15:25:09 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-05-15 16:07:52 (GMT) |
commit | f17388cc29090a94268256f1a17445e715bc5d94 (patch) | |
tree | b45c3765635ff15944acfdd929d083f74205c9d8 /drivers/usb/gadget | |
parent | 16bf900f50ec7fd2f45dc3a297d7936075cdae55 (diff) | |
download | linux-f17388cc29090a94268256f1a17445e715bc5d94.tar.xz |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/uvc_queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/uvc_queue.c b/drivers/usb/gadget/uvc_queue.c index 9ac4ffe1..305eb49 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); |