From: Stephen Warren Date: Fri, 8 Jun 2012 18:34:23 +0000 (-0600) Subject: ASoC: probe CODECs and platforms before DAIs and links X-Git-Tag: v3.6-rc1~117^2~4^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62ae68fa5d6d6f93d8ca8d00e21ad7ac410f9d58;p=pandora-kernel.git ASoC: probe CODECs and platforms before DAIs and links soc_probe_dai_link() currently inter-mixes the probing of CODECs, platforms, and DAIs. This can lead to problems such as a CODEC's DAI being probed before the CODEC, if that DAI is used as the CPU-side of a DAI link without any other of the CODEC's DAIs having been used as the CODEC-side of any DAI link that was probed earlier. To solve this, split soc_probe_dai_link() into soc_probe_link_components() and soc_probe_link_dais(). The former is used to probe all CODECs and platforms used by a card first, and then the latter is used to probe all the DAIs and links later. A similar change is made to soc_remove_dai_links(). Signed-off-by: Stephen Warren Signed-off-by: Mark Brown --- Reading git-diff-tree failed