V4L/DVB (5373): [PATCH] Hauppauge Nova-T endianess problem on powerpc
authorDennis Ranke <mail@exoticorn.de>
Fri, 2 Mar 2007 09:27:28 +0000 (06:27 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:44:09 +0000 (15:44 -0300)
commit387e69adff3d441616b45002ff85c5b36001be9e
tree9d1877b90f6b66fcb3094398852f940e5a81c059
parentddc9ece89dbeb374e34772232f5e26f64ce63390
V4L/DVB (5373): [PATCH] Hauppauge Nova-T endianess problem on powerpc

When trying to use a Hauppauge Nova-T Stick on a big-endian architecture
(such as powerpc) no frontend can be attached.
The attached patch fixes this problem by removing two lines in
dib0700_ctrl_rd() that try to correct the endianess on two values that
already are correct:
-       /* think about swapping here */
-       value = le16_to_cpu(value);
-       index = le16_to_cpu(index);
With this simple patch this dvb hardware works great, thanks to anyone
involved for the good work. :)

Signed-off-by: Dennis Ranke <mail@exoticorn.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/dib0700_core.c
drivers/media/dvb/dvb-usb/dib0700_devices.c