]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: Sort DAPM power sequences while building lists
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 6 Jun 2009 18:03:23 +0000 (19:03 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 7 Jun 2009 12:02:27 +0000 (13:02 +0100)
commit38357ab2c83631728afa37a783c9b1bd474a0739
tree847afc9a3a88ac21ecfa4c7c4e79f3950da3d26c
parent74b8f955a73d20b1e22403fd1ef85834fbf38d98
ASoC: Sort DAPM power sequences while building lists

In the past the DAPM power sequencing was done by iterating over the list
of widgets once for each widget type and powering widgets of that type.
Instead of doing that do the sorting at the time we insert the widgets
into the lists of widgets to apply power changes to. This reduces the
amount of computation required for seqencing still further, though the
costs are generally dwarfed by the costs of the register writes
implementing them.

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