[linux-dvb] LITE-ON DVBT USB adapter
xyzzy at speakeasy.org
Thu Jul 19 11:55:05 CEST 2007
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
> 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 = DIBUSB_IOCTL_CMD_POWER_MODE;
b = onoff ? DIBUSB_IOCTL_POWER_WAKEUP : DIBUSB_IOCTL_POWER_SLEEP;
ret = dvb_usb_generic_write(d,b,3);
+ msleep(onoff ? 100 : 10);
More information about the linux-dvb