From: Philipp Zabel Date: Fri, 31 Mar 2017 13:33:26 +0000 (-0300) Subject: [media] tvp5150: fix pad format frame height X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0866df8dffd514185bfab0d205db76e4c02cf1e4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] tvp5150: fix pad format frame height 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index abc3b18691d3..04e96b3057bb 100644 --- a/drivers/media/i2c/tvp5150.c +++ b/drivers/media/i2c/tvp5150.c @@ -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;