aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc-component.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-06-04 17:07:54 +0900
committerMark Brown <broonie@kernel.org>2020-06-15 18:21:25 +0100
commit257c4dac8b7877c865e734533b5f62769c64afb6 (patch)
treea517cd2382890624ce43fa118a1175a5a95c59a5 /include/sound/soc-component.h
parentASoC: soc-component: add snd_soc_pcm_component_trigger() (diff)
downloadlinux-dev-257c4dac8b7877c865e734533b5f62769c64afb6.tar.xz
linux-dev-257c4dac8b7877c865e734533b5f62769c64afb6.zip
ASoC: soc-component: add snd_soc_component_init()
we wantn't to directly access to component related parameter as much as possible to keep encapsulation. This patch adds snd_soc_component_init() for it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/87img7w8x2.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-component.h')
-rw-r--r--include/sound/soc-component.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h
index bb26d55a9289..aea0eb0c3fcc 100644
--- a/include/sound/soc-component.h
+++ b/include/sound/soc-component.h
@@ -327,6 +327,9 @@ static inline int snd_soc_component_cache_sync(
int snd_soc_component_initialize(struct snd_soc_component *component,
const struct snd_soc_component_driver *driver,
struct device *dev, const char *name);
+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);
/* component IO */
int snd_soc_component_read(struct snd_soc_component *component,