Re: LITE-ON DVBT USB adapter

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

 



On Thu, 19 Jul 2007, Pedro Aranda wrote:
> Hi folks,
> Problem: MT-2060 doesn't register => no frontend
>
> Solution: attached patch
>
> Request: include it in the mainstream ASAP: I'm really sick of
> having to recompile the DVB subsystem everytime a kernel update
> happens
>
> THANKS a lot

Try reading README.patches and following the guidlines for submitting a
patch.  You might also try not writing html emails, they don't seem to be
very popular on linux-centric lists.

Anyway, I don't think think patch adds the delay in the right place.
You're adding a 1 second delay to all usb dvb devices.  Obviously they
don't all need it.

I think the problem is not enough delay after the power control, but I
don't have any information.  I'm CCing Patrick since he's the only one who
really knows anything about the dibcom stuff.

Anyway, try this patch.  If that doesn't work, increase the 100 to 250 then
500 then 1000 and see what it takes.

diff -r 3929198de6a7 linux/drivers/media/dvb/dvb-usb/dibusb-common.c
--- a/linux/drivers/media/dvb/dvb-usb/dibusb-common.c	Tue Jul 17 16:36:20 2007 -0300
+++ b/linux/drivers/media/dvb/dvb-usb/dibusb-common.c	Thu Jul 19 02:46:28 2007 -0700
@@ -63,7 +63,7 @@ int dibusb_power_ctrl(struct dvb_usb_dev
 	b[1] = DIBUSB_IOCTL_CMD_POWER_MODE;
 	b[2] = onoff ? DIBUSB_IOCTL_POWER_WAKEUP : DIBUSB_IOCTL_POWER_SLEEP;
 	ret = dvb_usb_generic_write(d,b,3);
-	msleep(10);
+	msleep(onoff ? 100 : 10);
 	return ret;
 }
 EXPORT_SYMBOL(dibusb_power_ctrl);

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux