mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-30 06:25:03 +08:00
V4L/DVB (3572): Cxusb: conditionalize gpio write for the medion box
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
5245953e18
commit
5e805eff15
@ -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++) {
|
for (i = 0; i < num; i++) {
|
||||||
|
|
||||||
switch (msg[i].addr) {
|
if (d->udev->descriptor.idVendor == USB_VID_MEDION)
|
||||||
case 0x63:
|
switch (msg[i].addr) {
|
||||||
cxusb_gpio_tuner(d,0);
|
case 0x63:
|
||||||
break;
|
cxusb_gpio_tuner(d,0);
|
||||||
default:
|
break;
|
||||||
cxusb_gpio_tuner(d,1);
|
default:
|
||||||
break;
|
cxusb_gpio_tuner(d,1);
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* read request */
|
/* read request */
|
||||||
if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) {
|
if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user