]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda: Use auto cleanup macros for DSP loader locks
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Aug 2025 07:28:46 +0000 (09:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 09:52:14 +0000 (11:52 +0200)
commita23160c87986732590e68c1788e9b4929950ef67
treebf723e8129220e86d1dd18e9a8059dfece628b0a
parent8dad6b3dac2794c52d63b2336138392eddc17936
ALSA: hda: Use auto cleanup macros for DSP loader locks

There are temporary DSP locking/unlocking patterns found in various
places, and those can be cleaned up nicely with the guard() macro
calling snd_hdac_dsp_lock() and *_unlock().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250827072916.31933-7-tiwai@suse.de
include/sound/hdaudio.h
sound/hda/common/controller.c
sound/hda/core/stream.c