PATCH: better support for INTUIX DVB stick boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a INTUIX/LITEON DVB USB adapter. It boots correctly, but no
frontend is attached.
The following patch corrects this behaviour:

diff -r 3f2dffde2429 linux/drivers/media/dvb/dvb-usb/dibusb-common.c
--- a/linux/drivers/media/dvb/dvb-usb/dibusb-common.c   Thu Jul 30
20:00:44 2009 -0300
+++ b/linux/drivers/media/dvb/dvb-usb/dibusb-common.c   Wed Sep 30
08:56:56 2009 +0200
@@ -246,6 +246,11 @@ static struct dib3000mc_config mod3000p_

 int dibusb_dib3000mc_frontend_attach(struct dvb_usb_adapter *adap)
 {
+       if (adap->dev->udev->descriptor.idVendor  == USB_VID_LITEON &&
+               adap->dev->udev->descriptor.idProduct ==
USB_PID_LITEON_DVB_T_WARM) {
+           msleep(1000);
+       }
+
        if ((adap->fe = dvb_attach(dib3000mc_attach,
&adap->dev->i2c_adap, DEFAULT_DIB3000P_I2C_ADDRESS,
&mod3000p_dib3000p_config)) != NULL ||
                (adap->fe = dvb_attach(dib3000mc_attach,
&adap->dev->i2c_adap, DEFAULT_DIB3000MC_I2C_ADDRESS,
&mod3000p_dib3000p_config)) != NULL) {
                if (adap->priv != NULL) {


Since a couple of years ago, when I bought the stick, I have been
using this alternative patch,
which has not made it to the kernel, apparently because it introduced
this 1 second delay
which was not needed by other drivers:

diff -r 3f2dffde2429 linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
--- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c     Thu Jul 30
20:00:44 2009 -0300
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c     Wed Sep 30
08:56:56 2009 +0200
@@ -172,7 +172,7 @@ int dvb_usb_adapter_frontend_init(struct
                err("strange: '%s' #%d doesn't want to attach a
frontend.",adap->dev->desc->name, adap->id);
                return 0;
        }
-
+      msleep(1000);
        /* re-assign sleep and wakeup functions */
        if (adap->props.frontend_attach(adap) == 0 && adap->fe != NULL) {
                adap->fe_init  = adap->fe->ops.init;
adap->fe->ops.init  = dvb_usb_fe_wakeup;

I hope this one is accepted...

Cheers,/PA
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux