Hi,
Please excuse my newby questions, I'm usually doing userland stuff
only :-)
Some multi-function devices seem to use one vendor/product id
combination with one interface used for the scanner and the other one
for the printer. The current USB scanner driver can't cope with this
because of the following code in probe_scanner:
if (dev->config[0].bNumInterfaces != 1) {
info("probe_scanner: Only one device interface is supported.");
return NULL;
}
In http://www.geocrawler.com/mail/msg.php3?msg_id=9767006&list=2571
it was proposed to just remove this check. However, doesn't this mean
that the scanner driver attaches to both interfaces, so the printer
would be mistaken for a scanner?
A different approach involving more work would be to add the interface
number that represents the scanner part of the device to the list of
ids in scanner.h. Is the assumption correct that the index of the
interface (ifnum) stays constant? E.g. if ifnum=1 for the scanner
device for a multi-function device, will it be 1 everytime I plug in
the device?
So the entries in scanner.h would look like this:
{ USB_DEVICE(0x04a5, 0x2060), 1 }, /* Prisa Acerscan 620U & 640U(!)*/
And there would be a test for the interface number instead of the
above mention test for the total number of interfaces.
Comments? Other ideas?
Bye,
Henning
-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now! Before the Holidays pass you by.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel