ASoC: Reduce the number of neigbours we mark dirty when updating power
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 3 Oct 2011 21:36:57 +0000 (22:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 4 Oct 2011 15:50:21 +0000 (16:50 +0100)
commitfe4fda5d8f28d06ae8f1482f4bde8a83be16e44b
tree0c8352c5495db26e53b695f356be424f0ba75bbe
parentdb432b414e20b7218bbd91654d7be9c524a4337a
ASoC: Reduce the number of neigbours we mark dirty when updating power

If two widgets are not currently connected then there is no need to
propagate a power state change between them as we mark the affected
widgets when we change a connection. Similarly if a neighbour widget is
already in the state being set for the current widget then there is no
need to recheck.

On one system I tested this gave:

           Power    Path   Neighbour
Before:    114      1066   1327
After:     106      970    1186

which is an improvement, although relatively small.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c