summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c3
-rw-r--r--linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c
index a8ff62054..d704e2a10 100644
--- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c
+++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c
@@ -350,7 +350,7 @@ static struct dibusb_usb_device * dibusb_find_device (struct usb_device *udev,in
*cold = -1;
for (i = 0; i < sizeof(dibusb_devices)/sizeof(struct dibusb_usb_device); i++) {
for (j = 0; j < DIBUSB_ID_MAX_NUM && dibusb_devices[i].cold_ids[j] != NULL; j++) {
- deb_info("check for %x %x\n",dibusb_devices[i].cold_ids[j]->idVendor, dibusb_devices[i].cold_ids[j]->idProduct);
+ deb_info("check for cold %x %x\n",dibusb_devices[i].cold_ids[j]->idVendor, dibusb_devices[i].cold_ids[j]->idProduct);
if (dibusb_devices[i].cold_ids[j]->idVendor == udev->descriptor.idVendor &&
dibusb_devices[i].cold_ids[j]->idProduct == udev->descriptor.idProduct) {
*cold = 1;
@@ -359,6 +359,7 @@ static struct dibusb_usb_device * dibusb_find_device (struct usb_device *udev,in
}
for (j = 0; j < DIBUSB_ID_MAX_NUM && dibusb_devices[i].warm_ids[j] != NULL; j++)
+ deb_info("check for warm %x %x\n",dibusb_devices[i].cold_ids[j]->idVendor, dibusb_devices[i].cold_ids[j]->idProduct);
if (dibusb_devices[i].warm_ids[j]->idVendor == udev->descriptor.idVendor &&
dibusb_devices[i].warm_ids[j]->idProduct == udev->descriptor.idProduct) {
*cold = 0;
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c
index 19191a3ae..1ae5a6d85 100644
--- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c
+++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c
@@ -208,6 +208,12 @@ int dibusb_i2c_init(struct usb_dibusb *dib)
err("could not add i2c adapter");
dib->init_state |= DIBUSB_STATE_I2C;
+
+/* {
+ u8 b[3];
+ b[0] = 0xff; b[1] = 0; b[2] = 0; dibusb_i2c_msg(dib, 0x8, b, 3, NULL,0);
+ dibusb_set_streaming_mode(dib,1);
+ }*/
return ret;
}