Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4eb38d79 authored by Meng Wang's avatar Meng Wang
Browse files

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: default avatarMeng Wang <mengw@codeaurora.org>
parent 7db9be17
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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);
#endif
		goto _err_defer;
	}
	snd_soc_rtdcom_add(rtd, rtd->cpu_dai->component);