]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] media: tvp5150: Fix mbus format
authorJavier Martin <javier.martin@vista-silicon.com>
Mon, 26 Mar 2012 12:17:46 +0000 (09:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 12:39:32 +0000 (09:39 -0300)
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>
drivers/media/video/tvp5150.c

index 476a6a0bd1089089fd0c84e1ce400d2c2f50dcf7..b7867427e5c4a03673789ed80b9ac67643cbfa7e 100644 (file)
@@ -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;
 }
 
@@ -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;