[media] vivid: wrong top/bottom order for FIELD_ALTERNATE
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 6 Mar 2015 14:24:04 +0000 (11:24 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 23:29:48 +0000 (20:29 -0300)
The condition to decide whether the current field is top or bottom
was inverted. Fix this.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-kthread-cap.c

index 39a67cfae120079985598e8fc6500dac85d95265..9898072e9a400e66cda3c5c786ce604e23e45e85 100644 (file)
@@ -427,7 +427,7 @@ static void vivid_fillbuff(struct vivid_dev *dev, struct vivid_buffer *buf)
                 * standards.
                 */
                buf->vb.v4l2_buf.field = ((dev->vid_cap_seq_count & 1) ^ is_60hz) ?
-                       V4L2_FIELD_TOP : V4L2_FIELD_BOTTOM;
+                       V4L2_FIELD_BOTTOM : V4L2_FIELD_TOP;
                /*
                 * The sequence counter counts frames, not fields. So divide
                 * by two.