From: Kuninori Morimoto Date: Fri, 28 Feb 2014 02:25:24 +0000 (-0800) Subject: ASoC: simple-card: cpu_dai_name creates confusion when DT case X-Git-Tag: v3.15-rc1~36^2~1^2~5^2~4^5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f687d900d30a61dda38db2a99239f5284a86a309;p=pandora-kernel.git ASoC: simple-card: cpu_dai_name creates confusion when DT case Basically, soc_bind_dai_link() checks cpu_dai->dev->of_node and dai_link->cpu_of_node in DT case. But after that it will check cpu_dai->name and dai_link->cpu_dai_name too. On the other hand, snd_soc_dai :: name is created by fmt_single_name() or fmt_multiple_name(). There is no confusion if dai name is created by fmt_multiple_name(), since cpu_dai->name is same as dai_link->cpu_dai_name. but, if dai name is created by fmt_single_name(), CPU DAI never match. Thus, simple-card not set dai_link->cpu_dai_name if DT case to skip naming match on soc_bind_dai_link() Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- Reading git-diff-tree failed