Thanks Alan,

I will see configuration descriptor properly.

The first para of my e-mail says if the gadget with 2 configurations
and  multiple interfaces got attached to the Host, following things
must be done -

1. all the respective interface drivers get loaded for a particular
configuration.(e.g. if a device supports audio as well video, then
both audio class interface driver and video driver should get loaded )

2.  if i do cat /proc/bus/usb/devices  audio class driver and video
driver of Host should detect the gadget.


Thanks



On Nov 22, 2007 10:29 PM, Alan Stern <[EMAIL PROTECTED]> wrote:
> On Thu, 22 Nov 2007, Anil Yadav wrote:
>
> > Hi,
> >
> > I have a gadget with 2 configurations. The default configuration
> > supposed to expose 2 interfaces and the other configuration supposed
> > to expose a different set of interfaces. If I choose any configuration
> > e.g. config 2 how should I invoke the two interfaces so that their
> > respective gadget interface drivers get loaded and at host if #cat
> > /proc/bus/usb/devices done it should display all the interfaces
> > exposed by the gadget.
>
> Sorry, I can't understand that last sentence.
>
> > I guess composite devices work in same fashion.
> >
> > I have studied the zero.c source and tried with different options but
> > only one interface driver is getting exposed. Do I need to do
> > something in the device controller ?
>
> You do not need to change the device controller driver.  You just have
> to make sure your gadget driver sends the correct descriptors to the
> host.  In the reply to a Get-Config-Descriptor request, you have to
> send the configuration descriptor followed by all the interface and
> endpoint descriptors for that configuration.
>
> Alan Stern
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to