]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: synth: Use guard() for preset locks
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 15:13:19 +0000 (17:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 1 Sep 2025 11:54:27 +0000 (13:54 +0200)
commit826f35b829f43dc62fb847eca6f79e8698b4994d
tree2951f7d034a2286d2684e15a893783405dfc1d7f
parent59ede7178d402b3bfa0266cbd9ad348d5612c295
ALSA: synth: Use guard() for preset locks

Define a macro for the preset locking/unlocking pairs for soundfont
using guard() macro as a further code cleanup.

The new macro is put in soundfont.h (and some function renames) along
with it for avoiding unnecessary troubles with clang.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-6-tiwai@suse.de
include/sound/soundfont.h
sound/synth/emux/soundfont.c