On Sun, 13 Aug 2006 [EMAIL PROTECTED] wrote: > Hello > > I have an M-Audio (Fast Track Pro) USB device and I'd like to improve > the usb driver to support this device. > > The problem I'd like to ask the usb-devel list for is the following: > > This device has two configurations: > > Config 1 (this ist chosen by default) > Is class compliant Audio interface and support standard 16-Bit Audio > > Config 2 > Is also class compliant (it claims to be) and has more available > alternate settings. Thes are used for 24Bit Audio > > see alsa-devel list for detailled device description > http://sourceforge.net/mailarchive/message.php?msg_id=36140571 > > I'd like so setup something that the configuration will automatically > be chosen after plugin of the device. > > > In the linux/usb.h header it is said, thet a device driver not attempt > to activate configurations. So my question is where is the right place > to do this?
The right place to do it is userspace. > I think a patch for the hub.c (where the default configuration is > chosen) would also be a bad Idea? Becaus the hub.c would make > decisions depending on vendor and device ID. > > Or is there a user space configuration to influence this decision? You should write a hotplug or udev script that will detect the creation events for this device and will write the desired configuration number to /sys/devices/.../bConfigurationValue. Alan Stern ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel