diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2023-07-10 10:20:22 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-17 06:15:47 +0100 |
commit | 90de551c1bf0c78ca5cd10c5ff424dee4d44cb1c (patch) | |
tree | 9d0943378adc5dbb2958475547815749d24c420b /include/sound/simple_card_utils.h | |
parent | bbde4a30c6b18dd034dcce41612907dc64817175 (diff) | |
download | linux-90de551c1bf0c78ca5cd10c5ff424dee4d44cb1c.tar.gz linux-90de551c1bf0c78ca5cd10c5ff424dee4d44cb1c.tar.bz2 linux-90de551c1bf0c78ca5cd10c5ff424dee4d44cb1c.zip |
ASoC: simple-card-utils.c: enable multi Component support
If CPU/Codec driver keeps its DAI node, we can directly identify actual
DAI by using snd_soc_get_dai_via_args().
This means we can use multi Component.
This patch enables multi Component support on Audio Graph Card/Card2.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87a5w4o949.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/simple_card_utils.h')
-rw-r--r-- | include/sound/simple_card_utils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index b450d5873227..d1a95bc33c56 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -192,9 +192,8 @@ int asoc_simple_remove(struct platform_device *pdev); int asoc_graph_card_probe(struct snd_soc_card *card); int asoc_graph_is_ports0(struct device_node *port); -int asoc_graph_parse_dai(struct device_node *ep, - struct snd_soc_dai_link_component *dlc, - int *is_single_link); +int asoc_graph_parse_dai(struct device *dev, struct device_node *ep, + struct snd_soc_dai_link_component *dlc, int *is_single_link); #ifdef DEBUG static inline void asoc_simple_debug_dai(struct asoc_simple_priv *priv, |