From: Lars-Peter Clausen Date: Tue, 27 Aug 2013 13:50:59 +0000 (+0200) Subject: ASoC: Call snd_soc_dapm_new_widgets() only once during card initialization X-Git-Tag: v3.12-rc1~150^2~3^2~7^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b52fa211a7c65eab78acf3f434361d40de87688;p=pandora-kernel.git ASoC: Call snd_soc_dapm_new_widgets() only once during card initialization Each time snd_soc_dapm_new_widgets() is called it will instantiate all the widgets and routes that have been added so far and then power them. Doing this multiple times before the card is fully initialized and all widgets have been added can cause unnecessary and even invalid power state transitions which can result in extra register writes and and also might cause clicks and pops. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed