]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] audio, set urb->interval
authorDavid Brownell <david-b@pacbell.net>
Wed, 22 May 2002 04:47:37 +0000 (21:47 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 22 May 2002 04:47:37 +0000 (21:47 -0700)
This sets urb->interval in two places it hadn't previously been set,
allowing things like SOX and XMMS to play through usb audio.

Using this and the previous patches, I was able to verify playback
of some Ogg Vorbis encoded music using most of the 2.5.17 host
controller drivers.  However, "uhci-hcd" and "usb-uhci-hcd" did
not want to bind the audio driver:  reading the config descriptor
(in audio.c) stalled rather consistently.  That failure was seen
with the other USB 1.1 drivers too, but not as consistently.

drivers/usb/class/audio.c

index f04db26a2fa0add9f48a3e5c0137a62cb2720447..65e4999ba5bf20806fd8214b80cdf3cd60ef3624 100644 (file)
@@ -1221,6 +1221,7 @@ static int usbout_prepare_desc(struct usbout *u, struct urb *urb)
                offs += cnt;
                cp += cnt;
        }
+       urb->interval = 1;
        if (err)
                u->dma.error++;
        if (u->dma.mapped) {
@@ -1291,6 +1292,7 @@ static int usbout_sync_prepare_desc(struct usbout *u, struct urb *urb)
                urb->iso_frame_desc[i].length = 3;
                urb->iso_frame_desc[i].offset = offs;
        }
+       urb->interval = 1;
        return 0;
 }