usb_set_interface() and alternate settings

From: rami rosen (ramirosen_at_nonexisting.hamakor.org.il)
Date: Tue 29 Jun 2004 - 12:39:10 IDT


Hello,
This question is for LINUX USB gurus:

ov511 and pwc are both linux kernel usb drivers for 2 families of webcams :
ov511 chip based
webcams and philips-based webcams.

Both are part of the linux kernel (under drivers/usb)
(this is only a general description;for details see:
http://alpha.dyndns.org/ov511/
http://www.smcc.demon.nl/webcam/).

ov511 has a module parameter named packetsize, which enables
changing the maximum Packet Size.

Looking a little at ov511.c shows that it does it by eventually
calling usb_set_interface with a different alternate setting.

My question: did anybody tried to use this parameter ?

I am trying to do the same in pwc-if.c ; (even though it does not
have that module paramter ; but it has a call to usb_set_interface().
It succeeds in usb_set_interface, but hangs afterwads.

Could it be that the pwc driver does not support a different
alternate setting other than the default one (even though it's
usb descriptor (under /proc/bus/usb/devices) shows a lot of other alternate
settings).

regards,
Rami Rosen

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il



This archive was generated by hypermail 2.1.7 : Tue 29 Jun 2004 - 12:53:17 IDT