summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2026-07-23 06:34:31 +0000
committerMark Brown <broonie@kernel.org>2026-08-05 00:39:28 +0100
commitf6cfdd246c256f3f87f50254cd6e105c7568ae57 (patch)
tree11093849e59d91207ac7ff990955ebf8b0f4410f /include
parent3e53dc96a007a40ee9a8b24e5884aa216381964a (diff)
downloadlinux-f6cfdd246c256f3f87f50254cd6e105c7568ae57.tar.gz
linux-f6cfdd246c256f3f87f50254cd6e105c7568ae57.zip
ASoC: soc-component: add snd_soc_component_{set_}name()
struct snd_soc_component will be capsuled soon, its member will not be able to access from non soc-component.c. Add snd_soc_component_{set_}name() to access name. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/87se5arz7s.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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index 874559458bd5..a13d5c98e0f3 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -284,6 +284,10 @@ static inline int snd_soc_component_cache_sync(
}
struct snd_soc_component *snd_soc_component_alloc(struct device *dev);
+
+void snd_soc_component_set_name(struct snd_soc_component *component, const char *name);
+const char *snd_soc_component_name(struct snd_soc_component *component);
+
void snd_soc_component_set_aux(struct snd_soc_component *component,
struct snd_soc_aux_dev *aux);
int snd_soc_component_init(struct snd_soc_component *component);