]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: Replace manual mutex/spinlock with guard()
authorTakashi Iwai <tiwai@suse.de>
Mon, 11 Aug 2025 08:20:18 +0000 (10:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Aug 2025 06:36:17 +0000 (08:36 +0200)
commitefea7a57370b956ef612dc603faa2df9126cc3ed
tree29f1c8c4b229f5bcf97603cf86046d69f51aea18
parent6ff0d95774f0c728f96b8f78367318e95e09ee64
ALSA: usb-audio: Replace manual mutex/spinlock with guard()

This is another code cleanup by replacing the manual mutex or spinlock
with guard() macros.  usb_audio_disconnect() is slightly refactored
(split to another function) to apply guard() cleanly, but the rest are
rather straightforward conversions.

No functional changes but only code refactoring.

Link: https://patch.msgid.link/20250811082019.31052-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/endpoint.c
sound/usb/media.c
sound/usb/midi.c
sound/usb/midi2.c
sound/usb/mixer_s1810c.c
sound/usb/mixer_us16x08.c
sound/usb/pcm.c
sound/usb/proc.c