Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 662c97cf authored by Frank Schaefer's avatar Frank Schaefer Committed by Mauro Carvalho Chehab
Browse files

[media] em28xx-v4l: fix video buffer field order reporting in progressive mode



The correct field order in progressive mode is V4L2_FIELD_NONE, not V4L2_FIELD_INTERLACED.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 627530c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -435,6 +435,9 @@ static inline void finish_buffer(struct em28xx *dev,
	em28xx_isocdbg("[%p/%d] wakeup\n", buf, buf->top_field);

	buf->vb.v4l2_buf.sequence = dev->v4l2->field_count++;
	if (dev->v4l2->progressive)
		buf->vb.v4l2_buf.field = V4L2_FIELD_NONE;
	else
		buf->vb.v4l2_buf.field = V4L2_FIELD_INTERLACED;
	v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp);