]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: Simplify with usb_endpoint_max_periodic_payload()
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Dec 2025 07:08:27 +0000 (08:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Dec 2025 07:09:51 +0000 (08:09 +0100)
commitcf5425e207351c962990da6a69aebec5948cc1f3
tree52ee35b49d59cb96f1e573db892e8b697ee6aef3
parenta30fa812222278ba8484f1817ea772960e3038c3
ALSA: usb-audio: Simplify with usb_endpoint_max_periodic_payload()

Recently we received a new helper function,
usb_endpoint_max_periodic_payload(), for calculating the max packet
size for periodic transfer.

Simplify the former open code with the new helper function.

Fixes: a748e1dbb2df ("ALSA: usb-audio: Fix max bytes-per-interval calculation")
Suggested-by: Michal Pecio <michal.pecio@gmail.com>
Link: https://lore.kernel.org/20251124210518.90054-1-dylan_robinson@motu.com
Link: https://patch.msgid.link/20251202070828.145656-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c