]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit809918be38233712c26a59e9f4b21e50736c4ccf
treeb3fa7c9b9f0720a3e3c7b3d37132ae4e1091a68f
parentaa94f18af3b3854566107f8a2a3f864f1618585a
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