Skip to content

Commit

Permalink
[media] media: tvp5150: Fix mbus format
Browse files Browse the repository at this point in the history
According to p.14 fig 3-3 of the datasheet (SLES098A)
this decoder transmits data in UYVY format.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Javier Martin authored and Mauro Carvalho Chehab committed May 15, 2012
1 parent 1eaef48 commit 002eaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/tvp5150.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ static int tvp5150_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
if (index)
return -EINVAL;

*code = V4L2_MBUS_FMT_YUYV8_2X8;
*code = V4L2_MBUS_FMT_UYVY8_2X8;
return 0;
}

Expand All @@ -839,7 +839,7 @@ static int tvp5150_mbus_fmt(struct v4l2_subdev *sd,
f->width = decoder->rect.width;
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->colorspace = V4L2_COLORSPACE_SMPTE170M;

Expand Down

0 comments on commit 002eaf9

Please sign in to comment.