mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-14 18:22:56 +00:00
[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>
This commit is contained in:
parent
50cdbf1519
commit
29b16931f9
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue