Skip to content

Commit

Permalink
V4L/DVB (5024): Fix quickcam communicator driver for big endian archi…
Browse files Browse the repository at this point in the history
…tectures

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>
  • Loading branch information
Grant Likely authored and Mauro Carvalho Chehab committed Jan 15, 2007
1 parent a96afb3 commit c6d704c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions drivers/media/video/usbvideo/quickcam_messenger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c6d704c

Please sign in to comment.