ALSA: usb-audio: Apply mutex around snd_usb_endpoint_set_params()
authorTakashi Iwai <tiwai@suse.de>
Sun, 9 Oct 2022 10:42:10 +0000 (12:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 9 Oct 2022 10:43:25 +0000 (12:43 +0200)
commita74f8d0aa902ca494676b79226e0b5a1747b81d4
tree4957a4db515ac80706573979c00c31b18d0cc992
parent9902b303b5ade208b58f0dd38a09831813582211
ALSA: usb-audio: Apply mutex around snd_usb_endpoint_set_params()

The protection with chip->mutex was lost after splitting
snd_usb_endpoint_set_params() and snd_usb_endpoint_prepare().
Apply the same mutex again to the former function.

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