From: Vladimir Barinov Date: Mon, 15 Jul 2013 18:12:21 +0000 (-0300) Subject: upstream: [media] ml86v7667: override default field interlace order X-Git-Tag: submit/tizen/20141121.110247~2026 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=122c06735d45e5f493f9abcd3685516dbdb042e9;p=platform%2Fkernel%2Flinux-3.10.git upstream: [media] ml86v7667: override default field interlace order ML86V7667 always transmits top field first for both PAL and NTSC -- that makes application incorrectly treat interlaced fields when relying on the standard. Hence we must set V4L2_FIELD_INTERLACED_TB format explicitly. [Sergei: added a comment.] Reported-by: Katsuya MATSUBARA Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Tested-by: Katsuya MATSUBARA Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/ml86v7667.c b/drivers/media/i2c/ml86v7667.c index a985702..a9110d8 100644 --- a/drivers/media/i2c/ml86v7667.c +++ b/drivers/media/i2c/ml86v7667.c @@ -209,7 +209,8 @@ static int ml86v7667_mbus_fmt(struct v4l2_subdev *sd, fmt->code = V4L2_MBUS_FMT_YUYV8_2X8; fmt->colorspace = V4L2_COLORSPACE_SMPTE170M; - fmt->field = V4L2_FIELD_INTERLACED; + /* The top field is always transferred first by the chip */ + fmt->field = V4L2_FIELD_INTERLACED_TB; fmt->width = 720; fmt->height = priv->std & V4L2_STD_525_60 ? 480 : 576;