]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda/realtek: Use guard() for mutex locks and COEF locks
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Aug 2025 07:28:51 +0000 (09:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 09:52:14 +0000 (11:52 +0200)
commitece590486b59d434544c809d4e176fa4056dfcbc
tree8092bc1a3add8e0e2737e065f452e9cfbd956856
parent2387cf78f5fd84b72880ad15a5627f9d91fe9e98
ALSA: hda/realtek: Use guard() for mutex locks and COEF locks

Replace the manual mutex lock/unlock pairs with guard().

Also, introduce the guard() for coef_mutex_lock() and _unlock() pairs,
and replace accordingly, too.  The coef_mutex_lock() and *_unlock()
are moved to readtek.h as static inline functions along with it.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250827072916.31933-12-tiwai@suse.de
sound/hda/codecs/realtek/alc268.c
sound/hda/codecs/realtek/realtek.c
sound/hda/codecs/realtek/realtek.h