From: Lars-Peter Clausen Date: Sat, 30 Apr 2011 17:45:49 +0000 (+0200) Subject: ASoC: Move DAPM widget debugfs entry creation to snd_soc_dapm_new_widgets X-Git-Tag: v3.0-rc1~347^2~1^2~27^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5d1e0bef4385a0cd726613c0fc1909cd23efd39;p=pandora-kernel.git ASoC: Move DAPM widget debugfs entry creation to snd_soc_dapm_new_widgets Currently debugfs entries for a DAPM widgets are only added in snd_soc_dapm_debugfs_init. If a widget is added later (for example in the dai_link's probe callback) it will not show up in debugfs. This patch moves the creation of the widget debugfs entry to snd_soc_dapm_new_widgets where it will be added after the widget has been properly instantiated. As a side-effect this will also reduce the number of times the DAPM widget list is iterated during a card's instantiation. Since it is possible that snd_soc_dapm_new_widgets is invoked form the codecs or cards probe callbacks, the creation of the debugfs dapm directory has to be moved before these are called. Signed-off-by: Lars-Peter Clausen Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed