aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2025-09-04 05:21:21 +0000
committerMark Brown <broonie@kernel.org>2025-09-18 22:24:12 +0100
commita1c99b6097afe64ed493c05b522ee4d6f9b0094d (patch)
treea99d54bd8674e94cfae8f2bd7d9b2378e7a6e365 /include/sound
parent96e311b561a2d393a786a2aeb50cd5e02d06afb3 (diff)
downloadlinux-a1c99b6097afe64ed493c05b522ee4d6f9b0094d.tar.gz
ASoC: soc-component: add snd_soc_component_to_dapm()
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. Current dapm of card/component are using "instance", but it will be "pointer" if snd_soc_dapm_context was removed from header. snd_soc_component_to_dapm() is needed to switch to the new style while maintaining compatibility Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/878qiux06m.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-component.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 7322d5d4c0bdcf..b954f34d6025e7 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -261,16 +261,19 @@ struct snd_soc_component {
list_for_each_entry_safe(dai, _dai, &(component)->dai_list, list)
/**
- * snd_soc_component_get_dapm() - Returns the DAPM context associated with a
+ * snd_soc_component_to_dapm() - Returns the DAPM context associated with a
* component
* @component: The component for which to get the DAPM context
*/
-static inline struct snd_soc_dapm_context *snd_soc_component_get_dapm(
+static inline struct snd_soc_dapm_context *snd_soc_component_to_dapm(
struct snd_soc_component *component)
{
return &component->dapm;
}
+// FIXME
+#define snd_soc_component_get_dapm snd_soc_component_to_dapm
+
/**
* snd_soc_component_cache_sync() - Sync the register cache with the hardware
* @component: COMPONENT to sync