aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2020-07-31 16:41:44 +0200
committerMark Brown <broonie@kernel.org>2020-07-31 19:35:57 +0100
commit08ff7209faf21daa01bf66c91c321ce52d4b4bdb (patch)
tree65e53204dbbe3f2fa03fc408cd10131ed7e33c31 /include/sound/soc.h
parentMerge series "drop unnecessary list_empty" from Julia Lawall <Julia.Lawall@inria.fr>: (diff)
downloadlinux-dev-08ff7209faf21daa01bf66c91c321ce52d4b4bdb.tar.xz
linux-dev-08ff7209faf21daa01bf66c91c321ce52d4b4bdb.zip
ASoC: core: Relocate and expose snd_soc_component_initialize
To allow for two-step component registration, expose snd_soc_component_initialize function and move it back to soc-core.c. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20200731144146.6678-2-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index acbb5efb28ef..77a304d36c61 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -414,6 +414,9 @@ static inline int snd_soc_resume(struct device *dev)
}
#endif
int snd_soc_poweroff(struct device *dev);
+int snd_soc_component_initialize(struct snd_soc_component *component,
+ const struct snd_soc_component_driver *driver,
+ struct device *dev, const char *name);
int snd_soc_add_component(struct device *dev,
struct snd_soc_component *component,
const struct snd_soc_component_driver *component_driver,