aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/mt9t112.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/mt9t112.c')
-rw-r--r--drivers/media/video/mt9t112.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/mt9t112.c b/drivers/media/video/mt9t112.c
index e4bf1db9a87b..8ec47e42d4d0 100644
--- a/drivers/media/video/mt9t112.c
+++ b/drivers/media/video/mt9t112.c
@@ -121,22 +121,22 @@ struct mt9t112_priv {
121 121
122static const struct mt9t112_format mt9t112_cfmts[] = { 122static const struct mt9t112_format mt9t112_cfmts[] = {
123 { 123 {
124 .code = V4L2_MBUS_FMT_YUYV8_2X8_BE, 124 .code = V4L2_MBUS_FMT_UYVY8_2X8,
125 .colorspace = V4L2_COLORSPACE_JPEG, 125 .colorspace = V4L2_COLORSPACE_JPEG,
126 .fmt = 1, 126 .fmt = 1,
127 .order = 0, 127 .order = 0,
128 }, { 128 }, {
129 .code = V4L2_MBUS_FMT_YVYU8_2X8_BE, 129 .code = V4L2_MBUS_FMT_VYUY8_2X8,
130 .colorspace = V4L2_COLORSPACE_JPEG, 130 .colorspace = V4L2_COLORSPACE_JPEG,
131 .fmt = 1, 131 .fmt = 1,
132 .order = 1, 132 .order = 1,
133 }, { 133 }, {
134 .code = V4L2_MBUS_FMT_YUYV8_2X8_LE, 134 .code = V4L2_MBUS_FMT_YUYV8_2X8,
135 .colorspace = V4L2_COLORSPACE_JPEG, 135 .colorspace = V4L2_COLORSPACE_JPEG,
136 .fmt = 1, 136 .fmt = 1,
137 .order = 2, 137 .order = 2,
138 }, { 138 }, {
139 .code = V4L2_MBUS_FMT_YVYU8_2X8_LE, 139 .code = V4L2_MBUS_FMT_YVYU8_2X8,
140 .colorspace = V4L2_COLORSPACE_JPEG, 140 .colorspace = V4L2_COLORSPACE_JPEG,
141 .fmt = 1, 141 .fmt = 1,
142 .order = 3, 142 .order = 3,
@@ -972,7 +972,7 @@ static int mt9t112_s_crop(struct v4l2_subdev *sd, struct v4l2_crop *a)
972 struct v4l2_rect *rect = &a->c; 972 struct v4l2_rect *rect = &a->c;
973 973
974 return mt9t112_set_params(client, rect->width, rect->height, 974 return mt9t112_set_params(client, rect->width, rect->height,
975 V4L2_MBUS_FMT_YUYV8_2X8_BE); 975 V4L2_MBUS_FMT_UYVY8_2X8);
976} 976}
977 977
978static int mt9t112_g_fmt(struct v4l2_subdev *sd, 978static int mt9t112_g_fmt(struct v4l2_subdev *sd,
@@ -983,7 +983,7 @@ static int mt9t112_g_fmt(struct v4l2_subdev *sd,
983 983
984 if (!priv->format) { 984 if (!priv->format) {
985 int ret = mt9t112_set_params(client, VGA_WIDTH, VGA_HEIGHT, 985 int ret = mt9t112_set_params(client, VGA_WIDTH, VGA_HEIGHT,
986 V4L2_MBUS_FMT_YUYV8_2X8_BE); 986 V4L2_MBUS_FMT_UYVY8_2X8);
987 if (ret < 0) 987 if (ret < 0)
988 return ret; 988 return ret;
989 } 989 }