aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ak881x.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lyakh@axis700.grange>2010-07-22 15:52:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:43:36 -0400
commitace6e9799f585994c92ac3c0696bc336e50077e6 (patch)
treeb271f7c965f66d8180109ca223b129a868829001 /drivers/media/video/ak881x.c
parent0f9313ad068af4156109661fb8e94ee7fcb79001 (diff)
V4L/DVB: mediabus: fix ambiguous pixel code names
Endianness notation is meaningless for 8 bit YUYV codes. Switch pixel code names to explicitly state the order of colour components in the data stream. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ak881x.c')
-rw-r--r--drivers/media/video/ak881x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/ak881x.c b/drivers/media/video/ak881x.c
index 1573392f74bd..b388654d48cd 100644
--- a/drivers/media/video/ak881x.c
+++ b/drivers/media/video/ak881x.c
@@ -126,7 +126,7 @@ static int ak881x_try_g_mbus_fmt(struct v4l2_subdev *sd,
126 v4l_bound_align_image(&mf->width, 0, 720, 2, 126 v4l_bound_align_image(&mf->width, 0, 720, 2,
127 &mf->height, 0, ak881x->lines, 1, 0); 127 &mf->height, 0, ak881x->lines, 1, 0);
128 mf->field = V4L2_FIELD_INTERLACED; 128 mf->field = V4L2_FIELD_INTERLACED;
129 mf->code = V4L2_MBUS_FMT_YUYV8_2X8_LE; 129 mf->code = V4L2_MBUS_FMT_YUYV8_2X8;
130 mf->colorspace = V4L2_COLORSPACE_SMPTE170M; 130 mf->colorspace = V4L2_COLORSPACE_SMPTE170M;
131 131
132 return 0; 132 return 0;
@@ -136,7 +136,7 @@ static int ak881x_s_mbus_fmt(struct v4l2_subdev *sd,
136 struct v4l2_mbus_framefmt *mf) 136 struct v4l2_mbus_framefmt *mf)
137{ 137{
138 if (mf->field != V4L2_FIELD_INTERLACED || 138 if (mf->field != V4L2_FIELD_INTERLACED ||
139 mf->code != V4L2_MBUS_FMT_YUYV8_2X8_LE) 139 mf->code != V4L2_MBUS_FMT_YUYV8_2X8)
140 return -EINVAL; 140 return -EINVAL;
141 141
142 return ak881x_try_g_mbus_fmt(sd, mf); 142 return ak881x_try_g_mbus_fmt(sd, mf);
@@ -148,7 +148,7 @@ static int ak881x_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned int index,
148 if (index) 148 if (index)
149 return -EINVAL; 149 return -EINVAL;
150 150
151 *code = V4L2_MBUS_FMT_YUYV8_2X8_LE; 151 *code = V4L2_MBUS_FMT_YUYV8_2X8;
152 return 0; 152 return 0;
153} 153}
154 154