Commit 002eaf90 authored by Javier Martin's avatar Javier Martin Committed by Mauro Carvalho Chehab

[media] media: tvp5150: Fix mbus format

According to p.14 fig 3-3 of the datasheet (SLES098A)
this decoder transmits data in UYVY format.
Signed-off-by: default avatarJavier Martin <javier.martin@vista-silicon.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 1eaef48b
...@@ -822,7 +822,7 @@ static int tvp5150_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index, ...@@ -822,7 +822,7 @@ static int tvp5150_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
if (index) if (index)
return -EINVAL; return -EINVAL;
*code = V4L2_MBUS_FMT_YUYV8_2X8; *code = V4L2_MBUS_FMT_UYVY8_2X8;
return 0; return 0;
} }
...@@ -839,7 +839,7 @@ static int tvp5150_mbus_fmt(struct v4l2_subdev *sd, ...@@ -839,7 +839,7 @@ static int tvp5150_mbus_fmt(struct v4l2_subdev *sd,
f->width = decoder->rect.width; f->width = decoder->rect.width;
f->height = decoder->rect.height; f->height = decoder->rect.height;
f->code = V4L2_MBUS_FMT_YUYV8_2X8; f->code = V4L2_MBUS_FMT_UYVY8_2X8;
f->field = V4L2_FIELD_SEQ_TB; f->field = V4L2_FIELD_SEQ_TB;
f->colorspace = V4L2_COLORSPACE_SMPTE170M; f->colorspace = V4L2_COLORSPACE_SMPTE170M;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment