mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ASoC: soc-dai: add snd_soc_dai_to_component()
DAI parameter will be capsuled soon, will be not enable to access from each drivers. Add snd_soc_dai_to_component() to get component from DAI. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com> Link: https://patch.msgid.link/87ld8zjpw1.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d4c557f621
commit
724da1c8b6
|
|
@ -212,6 +212,7 @@ int snd_soc_dai_get_channel_map(const struct snd_soc_dai *dai,
|
|||
unsigned int *tx_num, unsigned int *tx_slot,
|
||||
unsigned int *rx_num, unsigned int *rx_slot);
|
||||
|
||||
struct snd_soc_component *snd_soc_dai_to_component(const struct snd_soc_dai *dai);
|
||||
int snd_soc_dai_is_dummy(const struct snd_soc_dai *dai);
|
||||
int snd_soc_dai_add_controls(struct snd_soc_dai *dai,
|
||||
const struct snd_kcontrol_new *controls, int num_controls);
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ static inline int _soc_dai_ret(const struct snd_soc_dai *dai,
|
|||
"at %s() on %s\n", func, dai->name);
|
||||
}
|
||||
|
||||
struct snd_soc_component *snd_soc_dai_to_component(const struct snd_soc_dai *dai)
|
||||
{
|
||||
return dai->component;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_soc_dai_to_component);
|
||||
|
||||
/*
|
||||
* 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