ChangeSet 1.1595.8.8, 2003/07/30 10:35:28-07:00, [EMAIL PROTECTED]

[PATCH] USB: usb audio, remove garbage warning

There are two places where the audio driver checks for
endpoint-less interfaces, but the second one doesn't
filter out a garbage warning (without this patch).

Likely it'd be better to remove these warnings from
the driver, and maybe just place them in usbcore if
they'd ever be useful.  But this at least gets rid
of one class of "is this device broken" questions.


 drivers/usb/class/audio.c |    2 ++
 1 files changed, 2 insertions(+)


diff -Nru a/drivers/usb/class/audio.c b/drivers/usb/class/audio.c
--- a/drivers/usb/class/audio.c Fri Aug  1 10:56:17 2003
+++ b/drivers/usb/class/audio.c Fri Aug  1 10:56:17 2003
@@ -2953,6 +2953,8 @@
                        if (alts->desc.bInterfaceClass != USB_CLASS_AUDIO || 
alts->desc.bInterfaceSubClass != 2)
                                continue;
                        if (alts->desc.bNumEndpoints < 1) {
+                               /* altsetting 0 should never have iso EPs */
+                               if (alts->desc.bAlternateSetting != 0)
                                printk(KERN_ERR "usbaudio: device %u interface %u 
altsetting %u does not have an endpoint\n", 
                                       dev->devnum, asifout, i);
                                continue;



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to