Hi,

Without this patch, the alternate setting with index ifnum was used,
not the first one.

This patch is ontop of the "more than one intreface" patch sent to you
some minutes ago.

Bye,
  Henning
  
--- linux-2.4.21-pre1.interface/drivers/usb/scanner.c   2002-12-22 11:47:13.000000000 
+0100
+++ linux-2.4.21-pre1.altsetting/drivers/usb/scanner.c  2002-12-22 12:06:52.000000000 
++0100
@@ -326,6 +326,7 @@
  *      Vlasov <[EMAIL PROTECTED]>).
  *    - Accept devices with more than one interface. Only use interfaces that
  *      look like belonging to scanners.
+ *    - Use altsetting[0], not altsetting[ifnum].
  *
  * TODO
  *    - Remove the 2/3 endpoint limitation
@@ -917,7 +918,7 @@
                return NULL;
        }
 
-       endpoint = interface[ifnum].endpoint;
+       endpoint = interface[0].endpoint;
 
 /*
  * Start checking for one or two bulk endpoints and an optional


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to