[media] uvcvideo: Set buffer field to V4L2_FIELD_NONE
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 31 Oct 2014 12:56:16 +0000 (09:56 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 25 Nov 2014 10:38:43 +0000 (08:38 -0200)
The driver doesn't support interlaced video, set field to
V4L2_FIELD_NONE for all vb2 buffers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_video.c

index df81b9c4faf12ae0e00f6267d380d76608b4c8ba..b9c7dee8e7b35df80e958cdd6655fbab102f2036 100644 (file)
@@ -1021,6 +1021,7 @@ static int uvc_video_decode_start(struct uvc_streaming *stream,
 
                uvc_video_get_ts(&ts);
 
+               buf->buf.v4l2_buf.field = V4L2_FIELD_NONE;
                buf->buf.v4l2_buf.sequence = stream->sequence;
                buf->buf.v4l2_buf.timestamp.tv_sec = ts.tv_sec;
                buf->buf.v4l2_buf.timestamp.tv_usec =