ALSA: usb-audio: Update the number of packets properly at receiving
authorTakashi Iwai <tiwai@suse.de>
Mon, 16 Feb 2026 14:12:05 +0000 (15:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Feb 2026 14:13:17 +0000 (15:13 +0100)
commitcf044e44190234a41a788de1cdbb6c21f4a52e1e
tree07e49cda26f629d57d8b7b53884e0ceef92c43fe
parent5a36d2bda9c8303a46a52beafcb0711eff8d6a42
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>
sound/usb/endpoint.c