From 4eb38d792f05854804a75f146910c8b789f14dff Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Wed, 13 Nov 2019 17:04:35 +0800 Subject: [PATCH] ASoC: core: add debug log for cpu dais Add debug log to show which CPU dai is not registered during bootup. Change-Id: Ia6324edec64ff6e7ee08a0b292259c8ffb70d20e Signed-off-by: Meng Wang --- sound/soc/soc-core.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 9fc6d0103ee9..f478855cfa2d 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -902,8 +902,17 @@ static int soc_bind_dai_link(struct snd_soc_card *card, /* FIXME: we need multi CPU support in the future */ rtd->cpu_dai = snd_soc_find_dai(dai_link->cpus); if (!rtd->cpu_dai) { +#ifdef CONFIG_AUDIO_QGKI + if (dai_link->cpus->dai_name) + dev_info(card->dev, "ASoC: CPU DAI %s not registered\n", + dai_link->cpus->dai_name); + else if (dai_link->cpus->of_node) + dev_info(card->dev, "ASoC: CPU DAI %s not registered\n", + dai_link->cpus->of_node->full_name); +#else dev_info(card->dev, "ASoC: CPU DAI %s not registered\n", - dai_link->cpus->dai_name); + dai_link->cpus->dai_name); +#endif goto _err_defer; } snd_soc_rtdcom_add(rtd, rtd->cpu_dai->component);