Update of /cvsroot/alsa/alsa-kernel/usb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6244

Modified Files:
        usbaudio.c 
Log Message:
Fix for Creamware Noah:
search class-specific endpoint descriptor in the
extra descriptors of the sync ep, too

Index: usbaudio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbaudio.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- usbaudio.c  2 Mar 2004 15:32:38 -0000       1.82
+++ usbaudio.c  2 Mar 2004 17:01:17 -0000       1.83
@@ -2326,6 +2326,9 @@
                }
 
                csep = snd_usb_find_desc(alts->endpoint[0].extra, 
alts->endpoint[0].extralen, NULL, USB_DT_CS_ENDPOINT);
+               /* Creamware Noah has this descriptor after the 2nd endpoint */
+               if (!csep && altsd->bNumEndpoints >= 2)
+                       csep = snd_usb_find_desc(alts->endpoint[1].extra, 
alts->endpoint[1].extralen, NULL, USB_DT_CS_ENDPOINT);
                if (!csep || csep[0] < 7 || csep[2] != EP_GENERAL) {
                        snd_printk(KERN_ERR "%d:%u:%d : no or invalid class specific 
endpoint descriptor\n", 
                                   dev->devnum, iface_no, altno);



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to