]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/video/sh_vou.c
V4L/DVB: mediabus: fix ambiguous pixel code names
[net-next-2.6.git] / drivers / media / video / sh_vou.c
index 5f73a017961c7169d74bd0756c75d3fe229acd87..3869d515febdf1e9828f43fb0f8e3a94d235a3ee 100644 (file)
@@ -678,7 +678,7 @@ static int sh_vou_s_fmt_vid_out(struct file *file, void *priv,
        struct sh_vou_geometry geo;
        struct v4l2_mbus_framefmt mbfmt = {
                /* Revisit: is this the correct code? */
-               .code = V4L2_MBUS_FMT_YUYV8_2X8_LE,
+               .code = V4L2_MBUS_FMT_YUYV8_2X8,
                .field = V4L2_FIELD_INTERLACED,
                .colorspace = V4L2_COLORSPACE_SMPTE170M,
        };
@@ -726,7 +726,7 @@ static int sh_vou_s_fmt_vid_out(struct file *file, void *priv,
        /* Sanity checks */
        if ((unsigned)mbfmt.width > VOU_MAX_IMAGE_WIDTH ||
            (unsigned)mbfmt.height > VOU_MAX_IMAGE_HEIGHT ||
-           mbfmt.code != V4L2_MBUS_FMT_YUYV8_2X8_LE)
+           mbfmt.code != V4L2_MBUS_FMT_YUYV8_2X8)
                return -EIO;
 
        if (mbfmt.width != geo.output.width ||
@@ -937,7 +937,7 @@ static int sh_vou_s_crop(struct file *file, void *fh, struct v4l2_crop *a)
        struct sh_vou_geometry geo;
        struct v4l2_mbus_framefmt mbfmt = {
                /* Revisit: is this the correct code? */
-               .code = V4L2_MBUS_FMT_YUYV8_2X8_LE,
+               .code = V4L2_MBUS_FMT_YUYV8_2X8,
                .field = V4L2_FIELD_INTERLACED,
                .colorspace = V4L2_COLORSPACE_SMPTE170M,
        };
@@ -982,7 +982,7 @@ static int sh_vou_s_crop(struct file *file, void *fh, struct v4l2_crop *a)
        /* Sanity checks */
        if ((unsigned)mbfmt.width > VOU_MAX_IMAGE_WIDTH ||
            (unsigned)mbfmt.height > VOU_MAX_IMAGE_HEIGHT ||
-           mbfmt.code != V4L2_MBUS_FMT_YUYV8_2X8_LE)
+           mbfmt.code != V4L2_MBUS_FMT_YUYV8_2X8)
                return -EIO;
 
        geo.output.width = mbfmt.width;