aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2025-08-06 04:41:55 +0000
committerMark Brown <broonie@kernel.org>2025-08-10 21:08:54 +0100
commit7509e7e4288976e3028a6e8482d979ca77f584a7 (patch)
treefcea0685e279e21df2587b338e464806ec776268 /include
parentASoC: soc-component: unpack snd_soc_component_force_bias_level() (diff)
downloadlinux-7509e7e4288976e3028a6e8482d979ca77f584a7.tar.gz
linux-7509e7e4288976e3028a6e8482d979ca77f584a7.zip
ASoC: soc-component: unpack snd_soc_component_get_bias_level()
Because struct snd_soc_dapm_context is soc-dapm framework specific, user driver don't need to access its member directly, we would like to hide them. struct snd_soc_dapm_context will be removed from header in the future. This patch unpack component wrapper to cleanup it. The function will be kept by using macro for a while, but will be replaced/cleanuped in the future. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87zfcd6oz0.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc-component.h13
-rw-r--r--include/sound/soc-dapm.h1
2 files changed, 1 insertions, 13 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index c616f489c237..86ad2802879f 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -302,19 +302,6 @@ snd_soc_component_init_bias_level(struct snd_soc_component *component,
}
/**
- * snd_soc_component_get_bias_level() - Get current COMPONENT DAPM bias level
- * @component: The COMPONENT for which to get the DAPM bias level
- *
- * Returns: The current DAPM bias level of the COMPONENT.
- */
-static inline enum snd_soc_bias_level
-snd_soc_component_get_bias_level(struct snd_soc_component *component)
-{
- return snd_soc_dapm_get_bias_level(
- snd_soc_component_get_dapm(component));
-}
-
-/**
* snd_soc_dapm_kcontrol_component() - Returns the component associated to a
* kcontrol
* @kcontrol: The kcontrol
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 5bd9a27b12ba..6e2db79d6a97 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -727,6 +727,7 @@ void snd_soc_dapm_init_bias_level(struct snd_soc_dapm_context *dapm, enum snd_so
// REMOVE ME !!
#define snd_soc_component_force_bias_level(c, l) snd_soc_dapm_force_bias_level(&(c)->dapm, l)
+#define snd_soc_component_get_bias_level(c) snd_soc_dapm_get_bias_level(&(c)->dapm)
#define for_each_dapm_widgets(list, i, widget) \
for ((i) = 0; \