[media] tvp5150: fix pad format frame height
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 31 Mar 2017 13:33:26 +0000 (10:33 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 10 Apr 2017 17:42:19 +0000 (14:42 -0300)
Even if field order is set to V4L2_FIELD_ALTERNATE, the width and height
values in struct v4l2_mbus_framefmt still refer to frame size, not field
size.

Fixes: 4f57d27be2a5 ("[media] tvp5150: fix tvp5150_fill_fmt()")

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tvp5150.c

index abc3b18691d3313801ebe530b9ba6bdcfd08ae37..04e96b3057bb9cb28ea9d742a63b3ca283538754 100644 (file)
@@ -871,7 +871,7 @@ static int tvp5150_fill_fmt(struct v4l2_subdev *sd,
        f = &format->format;
 
        f->width = decoder->rect.width;
-       f->height = decoder->rect.height / 2;
+       f->height = decoder->rect.height;
 
        f->code = MEDIA_BUS_FMT_UYVY8_2X8;
        f->field = V4L2_FIELD_ALTERNATE;