diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 11:33:30 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 11:33:30 -0200 |
commit | 995d32a1dcb18eed5effb48d652953f093137827 (patch) | |
tree | 00aeeb1691105c3ad7d7c70fd8c69d7186233a78 | |
parent | c8afb6c4b5756848e332ee1cae77c73cfda98eea (diff) | |
download | mediapointer-dvb-s2-995d32a1dcb18eed5effb48d652953f093137827.tar.gz mediapointer-dvb-s2-995d32a1dcb18eed5effb48d652953f093137827.tar.bz2 |
Fix quickcam communicator driver for big endian architectures
From: Grant Likely <grant.likely@secretlab.ca>
Host endianess does not affect the order that pixel rgb data comes
in from the quickcam (the values are bytes, not words or longs). The
driver is erroniously swapping the order of rgb values for big endian
machines. This patch is needed get the Quickcam communicator working
on big endian machines (tested on powerpc)
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/video/usbvideo/quickcam_messenger.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/linux/drivers/media/video/usbvideo/quickcam_messenger.h b/linux/drivers/media/video/usbvideo/quickcam_messenger.h index baab9c081..17ace394d 100644 --- a/linux/drivers/media/video/usbvideo/quickcam_messenger.h +++ b/linux/drivers/media/video/usbvideo/quickcam_messenger.h @@ -35,27 +35,13 @@ struct rgb { }; struct bayL0 { -#ifdef __BIG_ENDIAN - u8 r; - u8 g; -#elif __LITTLE_ENDIAN u8 g; u8 r; -#else -#error not byte order defined -#endif }; struct bayL1 { -#ifdef __BIG_ENDIAN - u8 g; - u8 b; -#elif __LITTLE_ENDIAN u8 b; u8 g; -#else -#error not byte order defined -#endif }; struct cam_size { |