Isochronous transfers only have 1 frame buffer, but multiple

frame lengths. The frame buffer is at index 0.

Approved by:	re (kensmith)
Obtained from:	HPS
This commit is contained in:
marcel 2009-07-12 16:50:32 +00:00
parent 0e0d791891
commit 8233306b4d

View File

@ -1256,7 +1256,7 @@ uaudio_chan_record_callback(struct usb_xfer *xfer, usb_error_t error)
for (n = 0; n != nframes; n++) {
offset1 = offset0;
pc = usbd_xfer_get_frame(xfer, n);
pc = usbd_xfer_get_frame(xfer, 0);
len = usbd_xfer_frame_len(xfer, n);
while (len > 0) {