diff options
Diffstat (limited to 'sound/usb/usbaudio.c')
-rw-r--r-- | sound/usb/usbaudio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index a6ed0d08337e..076da19a9e28 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c | |||
@@ -565,6 +565,8 @@ static int prepare_playback_urb(snd_usb_substream_t *subs, | |||
565 | /* set the buffer pointer */ | 565 | /* set the buffer pointer */ |
566 | urb->transfer_buffer = runtime->dma_area + subs->hwptr * stride; | 566 | urb->transfer_buffer = runtime->dma_area + subs->hwptr * stride; |
567 | subs->hwptr += offs; | 567 | subs->hwptr += offs; |
568 | if (subs->hwptr == runtime->buffer_size) | ||
569 | subs->hwptr = 0; | ||
568 | } | 570 | } |
569 | spin_unlock_irqrestore(&subs->lock, flags); | 571 | spin_unlock_irqrestore(&subs->lock, flags); |
570 | urb->transfer_buffer_length = offs * stride; | 572 | urb->transfer_buffer_length = offs * stride; |