[PATCH] Hauppauge Nova-T endianess problem on powerpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

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@xxxxxxxxxxxx>
--- linux/drivers/media/dvb/dvb-usb/dib0700_core.c.orig	2007-03-02 01:14:36.000000000 +0100
+++ linux/drivers/media/dvb/dvb-usb/dib0700_core.c	2007-03-02 00:19:46.000000000 +0100
@@ -56,10 +56,6 @@ static int dib0700_ctrl_rd(struct dvb_us
 	if (txlen > 3)
 		index |= tx[3];
 
-	/* think about swapping here */
-	value = le16_to_cpu(value);
-	index = le16_to_cpu(index);
-
 	status = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev,0), tx[0],
 			USB_TYPE_VENDOR | USB_DIR_IN, value, index, rx, rxlen,
 			USB_CTRL_GET_TIMEOUT);
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux