mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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>
This commit is contained in:
parent
3e53dc96a0
commit
f6cfdd246c
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -42,6 +42,18 @@ struct snd_soc_component *snd_soc_component_alloc(struct device *dev)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(snd_soc_component_alloc);
|
||||
|
||||
void snd_soc_component_set_name(struct snd_soc_component *component, const char *name)
|
||||
{
|
||||
component->name = name;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_soc_component_set_name);
|
||||
|
||||
const char *snd_soc_component_name(struct snd_soc_component *component)
|
||||
{
|
||||
return component->name;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_soc_component_name);
|
||||
|
||||
/*
|
||||
* We might want to check substream by using list.
|
||||
* In such case, we can update these macros.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user