]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: soc-pcm: add DEFINE_GUARD for snd_soc_card_mutex
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Fri, 22 May 2026 13:33:58 +0000 (21:33 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 25 May 2026 10:42:42 +0000 (11:42 +0100)
commit2555c62275a10bb7dfb4476ebe73d48df11f3112
treeff39d54cf30da927f1883c94a8ab1e3143b99607
parent94bdfad3a665da68731deb56b0fe80f00a3e6da8
ASoC: soc-pcm: add DEFINE_GUARD for snd_soc_card_mutex

Define a guard class wrapping snd_soc_card_mutex_lock() and
snd_soc_card_mutex_unlock() so that scope-based locking can be used
while still picking up the SND_SOC_CARD_CLASS_RUNTIME lockdep subclass.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://patch.msgid.link/20260522-i2s-same-blk-v4-2-a71a86faaa20@linux.spacemit.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c