]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Avoid superfluous endpoint setup
authorTakashi Iwai <tiwai@suse.de>
Sun, 9 Oct 2022 10:42:12 +0000 (12:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 9 Oct 2022 10:43:26 +0000 (12:43 +0200)
commit98f55ed99bd322620f8d807494d28acfd5e30f15
tree595dd8f43057933559def9ba5459c024afff35b3
parent9e873ebf2f56a00d1d3429725df958a3a3eaa769
ALSA: usb-audio: Avoid superfluous endpoint setup

After splitting to snd_usb_endpoint_set_params() and *_prepare(), the
skip of each function should be checked with different flags, while we
still use ep->need_setup as the single one.  Introduce
ep->need_prepare for indicating the need of prepare, and also add the
missing check of ep->need_setup at the set_params.

Fixes: df9e7fe0e38c ("ALSA: usb-audio: Split endpoint setups for hw_params and prepare (take#2)")
Link: https://lore.kernel.org/r/20221009104212.18877-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/endpoint.c