These patches are against kernels 2.6.18 through at least 2.6.18-git7.

patch 15: This fix is not actually to ehci-hcd, but is rather a fix to
usbaudio necessitated by fixing the isoch underrun detection/reporting
in ehci. usbaudio playback nominally causes one, specific harmless
underrun in startup that the usbaudio code doesn't currently handle
properly.

Signed-off-by: Christopher "Monty" Montgomery <[EMAIL PROTECTED]>

---

diff -X b/Documentation/dontdiff -upr a/sound/usb/usbaudio.c
b/sound/usb/usbaudio.c
--- a/sound/usb/usbaudio.c      2006-09-26 22:10:24.000000000 -0400
+++ b/sound/usb/usbaudio.c      2006-09-26 22:35:43.000000000 -0400
@@ -838,6 +838,9 @@ static int start_urbs(struct snd_usb_sub
        subs->running = 1;
        for (i = 0; i < subs->nurbs; i++) {
                err = usb_submit_urb(subs->dataurb[i].urb, GFP_ATOMIC);
+               if (err == -EL2NSYNC)
+                       err = usb_submit_urb(subs->dataurb[i].urb, GFP_ATOMIC);
+               
                if (err < 0) {
                        snd_printk(KERN_ERR "cannot submit datapipe "
                                   "for urb %d, error %d: %s\n",
@@ -849,6 +852,8 @@ static int start_urbs(struct snd_usb_sub
        if (subs->syncpipe) {
                for (i = 0; i < SYNC_URBS; i++) {
                        err = usb_submit_urb(subs->syncurb[i].urb, GFP_ATOMIC);
+                       if (err == -EL2NSYNC)
+                               err = usb_submit_urb(subs->syncurb[i].urb, 
GFP_ATOMIC);
                        if (err < 0) {
                                snd_printk(KERN_ERR "cannot submit syncpipe "
                                           "for urb %d, error %d: %s\n",

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to