aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pxa_camera.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/pxa_camera.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/pxa_camera.c')
-rw-r--r--drivers/media/video/pxa_camera.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index 5835acf7fa7a..9de7d59916bd 100644
--- a/drivers/media/video/pxa_camera.c
+++ b/drivers/media/video/pxa_camera.c
@@ -1284,7 +1284,7 @@ static int pxa_camera_get_formats(struct soc_camera_device *icd, unsigned int id
1284 } 1284 }
1285 1285
1286 switch (code) { 1286 switch (code) {
1287 case V4L2_MBUS_FMT_YUYV8_2X8_BE: 1287 case V4L2_MBUS_FMT_UYVY8_2X8:
1288 formats++; 1288 formats++;
1289 if (xlate) { 1289 if (xlate) {
1290 xlate->host_fmt = &pxa_camera_formats[0]; 1290 xlate->host_fmt = &pxa_camera_formats[0];
@@ -1293,9 +1293,9 @@ static int pxa_camera_get_formats(struct soc_camera_device *icd, unsigned int id
1293 dev_dbg(dev, "Providing format %s using code %d\n", 1293 dev_dbg(dev, "Providing format %s using code %d\n",
1294 pxa_camera_formats[0].name, code); 1294 pxa_camera_formats[0].name, code);
1295 } 1295 }
1296 case V4L2_MBUS_FMT_YVYU8_2X8_BE: 1296 case V4L2_MBUS_FMT_VYUY8_2X8:
1297 case V4L2_MBUS_FMT_YUYV8_2X8_LE: 1297 case V4L2_MBUS_FMT_YUYV8_2X8:
1298 case V4L2_MBUS_FMT_YVYU8_2X8_LE: 1298 case V4L2_MBUS_FMT_YVYU8_2X8:
1299 case V4L2_MBUS_FMT_RGB565_2X8_LE: 1299 case V4L2_MBUS_FMT_RGB565_2X8_LE:
1300 case V4L2_MBUS_FMT_RGB555_2X8_PADHI_LE: 1300 case V4L2_MBUS_FMT_RGB555_2X8_PADHI_LE:
1301 if (xlate) 1301 if (xlate)