diff options
| author | Banajit Goswami <bgoswami@codeaurora.org> | 2015-08-20 18:52:39 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:11:11 -0700 |
| commit | 83731f8574fb29189ff383dd8df6bb29e9f6245d (patch) | |
| tree | 9f0e76f30837a77b864b24023b98eda829613923 /sound/soc/soc-core.c | |
| parent | 568a7edc434b047088c27e04cfab4914a419b06b (diff) | |
ASoC: soc-core: export function to find components
Drivers might need to use the ASoC core function to
find out whether a particular component is already
registered with ALSA core or not. Export the function
so that drivers can use it outside of the file.
Change-Id: I13e4a053de085974b0b53c392a9453e46f1aa66d
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Diffstat (limited to 'sound/soc/soc-core.c')
| -rw-r--r-- | sound/soc/soc-core.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index c1a035be918b..19defa060105 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -861,7 +861,17 @@ EXPORT_SYMBOL_GPL(snd_soc_resume); static const struct snd_soc_dai_ops null_dai_ops = { }; -static struct snd_soc_component *soc_find_component( +/** + * soc_find_component: find a component from component_list in ASoC core + * + * @of_node: of_node of the component to query. + * @name: name of the component to query. + * + * function to find out if a component is already registered with ASoC core. + * + * Returns component handle for success, else NULL error. + */ +struct snd_soc_component *soc_find_component( const struct device_node *of_node, const char *name) { struct snd_soc_component *component; @@ -879,6 +889,7 @@ static struct snd_soc_component *soc_find_component( return NULL; } +EXPORT_SYMBOL(soc_find_component); static struct snd_soc_dai *snd_soc_find_dai( const struct snd_soc_dai_link_component *dlc) |
