ASoC: dapm: Only mark paths dirty when the connection status changed
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 25 Oct 2014 15:41:56 +0000 (17:41 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 28 Oct 2014 00:19:59 +0000 (00:19 +0000)
commit4a2019480bc5146eb54fc5f0b2ff57b95629a09a
treeb3fa7c9b9f0720a3e3c7b3d37132ae4e1091a68f
parent130897ac5ac03adb4604d27497c378c64c7b22dd
ASoC: dapm: Only mark paths dirty when the connection status changed

Rework soc_dapm_{mixer,mux}_update_power() to only mark a path dirty if the
connect state if the path has actually changed. This avoids unnecessary
power state checks for the widgets involved.

Also factor out the common code that is involved in this into a helper
function.

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