]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: Move call to snd_soc_dapm_new_widgets() after snd_soc_dapm_auto_nc_codec_pins()
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 27 Aug 2013 13:51:00 +0000 (15:51 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 27 Aug 2013 14:39:43 +0000 (15:39 +0100)
commit8c193b8dce4f2a2474dc2bc39ec972454df9d439
treefb8dd4397f57e87488d14e0247783b42aacabca1
parent4b52fa211a7c65eab78acf3f434361d40de87688
ASoC: Move call to snd_soc_dapm_new_widgets() after snd_soc_dapm_auto_nc_codec_pins()

Call snd_soc_dapm_new_widgets() before the auto non-connected pins have been
marked as not connected will power the system under the assumption that those
pins are connected. Once the pins have been marked as disconnected the system
there will be an additional power run. This can cause unnecessary power
transitions. Calling snd_soc_dapm_new_widgets() only after the pins have been
marked as non-connected avoids this.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c