I can't tell if this test is correct, but the dvb-ttusb-budget driver 
appears to need it.  It changes altsettings for interface 1, so apparently 
it wants to be bound to that interface.

Please let me know if this patch is right or not.

Alan Stern


===== drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c 1.13 vs edited =====
--- 1.13/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c      Thu Apr 15 12:22:24 
2004
+++ edited/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c    Tue Apr 27 13:47:07 
2004
@@ -1087,6 +1087,9 @@
                return -ENODEV;
        }
 
+       /* This driver can only control interface 1 */
+       if (intf->cur_altsetting->desc.bInterfaceNumber != 1)
+               return -ENODEV;
 
        if (!(ttusb = kmalloc(sizeof(struct ttusb), GFP_KERNEL)))
                return -ENOMEM;



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to