From: Hans Verkuil Date: Fri, 6 Mar 2015 14:24:04 +0000 (-0300) Subject: [media] vivid: wrong top/bottom order for FIELD_ALTERNATE X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a94e7d6e825ac20f17436477120fb3fd8a755ebf;p=linux-beck.git [media] vivid: wrong top/bottom order for FIELD_ALTERNATE The condition to decide whether the current field is top or bottom was inverted. Fix this. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vivid/vivid-kthread-cap.c b/drivers/media/platform/vivid/vivid-kthread-cap.c index 39a67cfae120..9898072e9a40 100644 --- a/drivers/media/platform/vivid/vivid-kthread-cap.c +++ b/drivers/media/platform/vivid/vivid-kthread-cap.c @@ -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.