]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: seq: oss/synth: Clean up with guard and auto cleanup
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Aug 2025 08:05:16 +0000 (10:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 09:52:36 +0000 (11:52 +0200)
commit80ccbe91adab52a2b9a0e8b31663d4ec2a914a77
treefbe604a4eb21c06d20baa274605aba31de6d04d4
parent895a46e034f9aa11779c66f0bb41c51f50b265ef
ALSA: seq: oss/synth: Clean up with guard and auto cleanup

Use the auto-cleanup for the refcount management of seq_oss_synth
object.  The explicit call of snd_use_lock_free() is dropped by the
magic __free(seq_oss_synth) attribute.

Along with that, replace the manual mutex and spin locks with
guard().

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250827080520.7544-11-tiwai@suse.de
sound/core/seq/oss/seq_oss_synth.c