mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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 <mengw@codeaurora.org>
This commit is contained in:
parent
7db9be171f
commit
4eb38d792f
1 changed files with 10 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue