Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: usb-audio: Update the number of packets properly at receiving

At receiving the packets from the implicit feedback source, we didn't
update ctx->packets field but only the ctx->packet_size[] data.
In exceptional cases, this might lead to unexpectedly superfluous data
transfer (although this won't happen usually due to the nature of USB
isochronous transfer). Fix it to update the field properly.

Link: https://patch.msgid.link/20260216141209.1849200-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+1
+1
sound/usb/endpoint.c
··· 481 481 482 482 /* copy over the length information */ 483 483 if (implicit_fb) { 484 + ctx->packets = packet->packets; 484 485 for (i = 0; i < packet->packets; i++) 485 486 ctx->packet_size[i] = packet->packet_size[i]; 486 487 }