]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Unify the code for the next packet size calculation
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:37 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:16:13 +0000 (15:16 +0100)
commit07e27cea055c4ca6b74766d7e35cbef77b46b1f5
treebca1eab6c6df12e77c1f98f0f46992fa4528ae30
parent2a56ce05447cd8a655c3a2e1e02eccfd47cbf0ef
ALSA: usb-audio: Unify the code for the next packet size calculation

There are two places calculating the next packet size for the playback
stream in the exactly same way.  Provide the single helper for this
purpose and use it from both places gracefully.

Tested-by: Keith Milner <kamilner@superlative.org>
Tested-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://lore.kernel.org/r/20201123085347.19667-32-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c
sound/usb/endpoint.h
sound/usb/pcm.c