diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2026-10-14 02:59:24 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-15 23:13:21 +0100 |
| commit | 1fec554d55aa41830d7a3c54fce904bbff7e056f (patch) | |
| tree | 219d8fc0d3c25248e6fc97f9c3911c8f237f0ec1 /include | |
| parent | 8c186bc6b77be4913f5869a68d547dc52976fa9d (diff) | |
ASoC: soc-component: move snd_soc_lookup_component() to soc-component.c
struct snd_soc_component will be capsuled soon, its member will not be
able to access from non soc-component.c.
Move snd_soc_lookup_component() to soc-component.c
It renames function name
snd_soc_lookup_component_nolocked() -> snd_soc_component_lookup_nolock()
snd_soc_lookup_component() -> snd_soc_component_lookup()
snd_soc_lookup_component_by_name() -> snd_soc_component_lookup_by_name()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com>
Link: https://patch.msgid.link/878q41yokz.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.h | 8 | ||||
| -rw-r--r-- | include/sound/soc.h | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h index 0f955f5cbebc..c287ec6f458e 100644 --- a/include/sound/soc-component.h +++ b/include/sound/soc-component.h @@ -289,6 +289,11 @@ void snd_soc_component_set_aux(struct snd_soc_component *component, int snd_soc_component_init(struct snd_soc_component *component); int snd_soc_component_is_dummy(struct snd_soc_component *component); +struct snd_soc_component *snd_soc_component_lookup_nolock(struct device *dev, + const char *driver_name); +struct snd_soc_component *snd_soc_component_lookup(struct device *dev, const char *driver_name); +struct snd_soc_component *snd_soc_component_lookup_by_name(const char *component_name); + /* component IO */ unsigned int snd_soc_component_read(struct snd_soc_component *component, unsigned int reg); @@ -441,5 +446,8 @@ void snd_soc_pcm_component_delay(struct snd_pcm_substream *substream, /* REMOVE ME */ #define snd_soc_component_cache_sync snd_soc_component_regmap_cache_sync +#define snd_soc_lookup_component_nolocked snd_soc_component_lookup_nolock +#define snd_soc_lookup_component snd_soc_component_lookup +#define snd_soc_lookup_component_by_name snd_soc_component_lookup_by_name #endif /* __SOC_COMPONENT_H */ diff --git a/include/sound/soc.h b/include/sound/soc.h index 89612ac0c1d9..bc22720b1559 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -457,11 +457,6 @@ int devm_snd_soc_register_component(struct device *dev, #define snd_soc_unregister_component(dev) snd_soc_unregister_component_by_driver(dev, NULL) void snd_soc_unregister_component_by_driver(struct device *dev, const struct snd_soc_component_driver *component_driver); -struct snd_soc_component *snd_soc_lookup_component_nolocked(struct device *dev, - const char *driver_name); -struct snd_soc_component *snd_soc_lookup_component(struct device *dev, - const char *driver_name); -struct snd_soc_component *snd_soc_lookup_component_by_name(const char *component_name); int soc_new_pcm(struct snd_soc_pcm_runtime *rtd); #ifdef CONFIG_SND_SOC_COMPRESS |
