android_kernel_xiaomi_sm8350/sound/usb
Clemens Ladisch 29b16931f9 [ALSA] usb-audio - avoid unnecessary double buffering
USB generic driver
When a USB packet boundary falls exactly on a buffer boundary, hwptr
remains at the end of the buffer which causes an overflow in the next
iteration and triggers double buffering although the next packet would
actually be contiguous.

This patch ensures that hwptr is always smaller than buffer_size.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29 10:08:53 +02:00
..
usx2y [ALSA] usb-audio - remove superfluous parameter 2005-05-29 10:05:14 +02:00
Kconfig [ALSA] Fix snd-usb-audio dependency on snd-hwdep. 2005-05-29 10:06:25 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
usbaudio.c [ALSA] usb-audio - avoid unnecessary double buffering 2005-05-29 10:08:53 +02:00
usbaudio.h [ALSA] usb-audio - cache vendor/product IDs 2005-05-29 10:05:47 +02:00
usbmidi.c [ALSA] usb-audio - cache vendor/product IDs 2005-05-29 10:05:47 +02:00
usbmixer_maps.c [ALSA] usb-audio - cache vendor/product IDs 2005-05-29 10:05:47 +02:00
usbmixer.c [ALSA] usb-audio - add a proc file for Audigy 2 NX jack status 2005-05-29 10:06:34 +02:00
usbquirks.h [ALSA] usb-audio - BOSS GS-10 PCM support 2005-05-29 09:58:18 +02:00