]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit537d33245fd0ddec3914fc15d2b729f10c407baa
tree0c8352c5495db26e53b695f356be424f0ba75bbe
parent2b8a6e9f9c338230fc6bbbabfb1132ec9bbdc737
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