ASoC: add snd_soc_card_mutex_lock/unlock()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 6 Apr 2023 00:16:27 +0000 (00:16 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 17 Apr 2023 11:57:26 +0000 (12:57 +0100)
commit0f3b818486796ec8895fa4ccdf15edb759bff40a
tree7fc8dba52d49253349467e1f3e896bd6a23aeea6
parent38e42f6d6c6702bbfc633fce9b579fb80cec2d59
ASoC: add snd_soc_card_mutex_lock/unlock()

ASoC need to use card->mutex with _INIT or _RUNTIME,
but there is no helper function for it.

This patch adds its helper function and use it.

Because people might misunderstand that _init() is mutex initialization,
this patch renames _INIT to _ROOT and adds new
snd_soc_card_mutex_lock_root() for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87a5zlx3tw.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-card.h
sound/soc/soc-compress.c
sound/soc/soc-core.c