diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/cxusb.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/cxusb.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c index e14bf43941e3..a14e737ec848 100644 --- a/drivers/media/dvb/dvb-usb/cxusb.c +++ b/drivers/media/dvb/dvb-usb/cxusb.c | |||
@@ -81,18 +81,19 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num) | |||
81 | return -EAGAIN; | 81 | return -EAGAIN; |
82 | 82 | ||
83 | if (num > 2) | 83 | if (num > 2) |
84 | warn("more than 2 i2c messages at a time is not handled yet. TODO."); | 84 | warn("more than two i2c messages at a time is not handled yet. TODO."); |
85 | 85 | ||
86 | for (i = 0; i < num; i++) { | 86 | for (i = 0; i < num; i++) { |
87 | 87 | ||
88 | switch (msg[i].addr) { | 88 | if (d->udev->descriptor.idVendor == USB_VID_MEDION) |
89 | case 0x63: | 89 | switch (msg[i].addr) { |
90 | cxusb_gpio_tuner(d,0); | 90 | case 0x63: |
91 | break; | 91 | cxusb_gpio_tuner(d,0); |
92 | default: | 92 | break; |
93 | cxusb_gpio_tuner(d,1); | 93 | default: |
94 | break; | 94 | cxusb_gpio_tuner(d,1); |
95 | } | 95 | break; |
96 | } | ||
96 | 97 | ||
97 | /* read request */ | 98 | /* read request */ |
98 | if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { | 99 | if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { |
@@ -108,7 +109,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num) | |||
108 | break; | 109 | break; |
109 | 110 | ||
110 | if (ibuf[0] != 0x08) | 111 | if (ibuf[0] != 0x08) |
111 | deb_info("i2c read could have been failed\n"); | 112 | deb_i2c("i2c read may have failed\n"); |
112 | 113 | ||
113 | memcpy(msg[i+1].buf,&ibuf[1],msg[i+1].len); | 114 | memcpy(msg[i+1].buf,&ibuf[1],msg[i+1].len); |
114 | 115 | ||
@@ -122,7 +123,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num) | |||
122 | if (cxusb_ctrl_msg(d,CMD_I2C_WRITE, obuf, 2+msg[i].len, &ibuf,1) < 0) | 123 | if (cxusb_ctrl_msg(d,CMD_I2C_WRITE, obuf, 2+msg[i].len, &ibuf,1) < 0) |
123 | break; | 124 | break; |
124 | if (ibuf != 0x08) | 125 | if (ibuf != 0x08) |
125 | deb_info("i2c write could have been failed\n"); | 126 | deb_i2c("i2c write may have failed\n"); |
126 | } | 127 | } |
127 | } | 128 | } |
128 | 129 | ||
@@ -410,7 +411,6 @@ static int bluebird_patch_dvico_firmware_download(struct usb_device *udev, const | |||
410 | if (fw->data[BLUEBIRD_01_ID_OFFSET] == (USB_VID_DVICO & 0xff) && | 411 | if (fw->data[BLUEBIRD_01_ID_OFFSET] == (USB_VID_DVICO & 0xff) && |
411 | fw->data[BLUEBIRD_01_ID_OFFSET + 1] == USB_VID_DVICO >> 8) { | 412 | fw->data[BLUEBIRD_01_ID_OFFSET + 1] == USB_VID_DVICO >> 8) { |
412 | 413 | ||
413 | /* FIXME: are we allowed to change the fw-data ? */ | ||
414 | fw->data[BLUEBIRD_01_ID_OFFSET + 2] = udev->descriptor.idProduct + 1; | 414 | fw->data[BLUEBIRD_01_ID_OFFSET + 2] = udev->descriptor.idProduct + 1; |
415 | fw->data[BLUEBIRD_01_ID_OFFSET + 3] = udev->descriptor.idProduct >> 8; | 415 | fw->data[BLUEBIRD_01_ID_OFFSET + 3] = udev->descriptor.idProduct >> 8; |
416 | 416 | ||