The USB audio driver claims the streaming interfaces of the device even if
they have already been claimed by another driver. (See the thread
"snd-usb-midi, midi input, oss, oops!" for the gory details.)
Index: usbaudio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbaudio.c,v
retrieving revision 1.8
diff -u -r1.8 usbaudio.c
--- alsa-kernel/usb/usbaudio.c 13 Sep 2002 08:39:08 -0000 1.8
+++ alsa-kernel/usb/usbaudio.c 18 Sep 2002 12:35:47 -0000
@@ -1829,6 +1829,10 @@
continue;
}
iface = &config->interface[j];
+ if (usb_interface_claimed(iface)) {
+ snd_printdd(KERN_INFO "%d:%d:%d: skipping, already claimed\n",
+dev->devnum, ctrlif, j);
+ continue;
+ }
if (iface->altsetting[0].bInterfaceClass == USB_CLASS_AUDIO &&
iface->altsetting[0].bInterfaceSubClass ==
USB_SUBCLASS_MIDI_STREAMING) {
if (snd_usb_create_midi_interface(chip, j, NULL) < 0) {
-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel