diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-03-22 22:01:34 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-03-22 22:01:34 -0500 |
commit | a843a07e7054915274ce621ca108f48dfb6dd797 (patch) | |
tree | 9c0d2cf9d7cb53bd413a66d49b6ea2aac7f45d18 /linux/drivers/media/dvb/dvb-usb | |
parent | f4421c541bfe09f509ce9bc274bf7b4c22977372 (diff) | |
download | mediapointer-dvb-s2-a843a07e7054915274ce621ca108f48dfb6dd797.tar.gz mediapointer-dvb-s2-a843a07e7054915274ce621ca108f48dfb6dd797.tar.bz2 |
cxusb: conditionalize gpio write for the medion box
From: Michael Krufky <mkrufky@linuxtv.org>
This patch removes the (harmless) -ETIMEDOUT during device init
for the DViCO FusionHDTV Bluebird boxes, by conditionalizing the
gpio write inside cxusb_i2c_xfer to happen only for Medion boxes.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/cxusb.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/cxusb.c b/linux/drivers/media/dvb/dvb-usb/cxusb.c index 806e6f747..ed7e4132d 100644 --- a/linux/drivers/media/dvb/dvb-usb/cxusb.c +++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c @@ -85,14 +85,15 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num) for (i = 0; i < num; i++) { - switch (msg[i].addr) { - case 0x63: - cxusb_gpio_tuner(d,0); - break; - default: - cxusb_gpio_tuner(d,1); - break; - } + if (d->udev->descriptor.idVendor == USB_VID_MEDION) + switch (msg[i].addr) { + case 0x63: + cxusb_gpio_tuner(d,0); + break; + default: + cxusb_gpio_tuner(d,1); + break; + } /* read request */ if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { |