Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=387e69adff3d441616b45002ff85c5b36001be9e
Commit:     387e69adff3d441616b45002ff85c5b36001be9e
Parent:     ddc9ece89dbeb374e34772232f5e26f64ce63390
Author:     Dennis Ranke <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 2 06:27:28 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 15:44:09 2007 -0300

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Patrick Boettcher <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/dvb-usb/dib0700_core.c    |    4 ----
 drivers/media/dvb/dvb-usb/dib0700_devices.c |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/dib0700_core.c 
b/drivers/media/dvb/dvb-usb/dib0700_core.c
index 6a4d150..dddf164 100644
--- a/drivers/media/dvb/dvb-usb/dib0700_core.c
+++ b/drivers/media/dvb/dvb-usb/dib0700_core.c
@@ -56,10 +56,6 @@ static int dib0700_ctrl_rd(struct dvb_usb_device *d, u8 *tx, 
u8 txlen, u8 *rx, u
        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);
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c 
b/drivers/media/dvb/dvb-usb/dib0700_devices.c
index aa290be..2208757 100644
--- a/drivers/media/dvb/dvb-usb/dib0700_devices.c
+++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c
@@ -287,7 +287,7 @@ MODULE_DEVICE_TABLE(usb, dib0700_usb_id_table);
 #define DIB0700_DEFAULT_DEVICE_PROPERTIES \
        .caps              = DVB_USB_IS_AN_I2C_ADAPTER, \
        .usb_ctrl          = DEVICE_SPECIFIC, \
-       .firmware          = "dvb-usb-dib0700-02-rc1.fw", \
+       .firmware          = "dvb-usb-dib0700-01.fw", \
        .download_firmware = dib0700_download_firmware, \
        .no_reconnect      = 1, \
        .size_of_priv      = sizeof(struct dib0700_state), \
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to