]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Cache connected input and output recursions
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 9 Oct 2011 10:52:05 +0000 (11:52 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 9 Oct 2011 11:07:48 +0000 (12:07 +0100)
commitd48383382ac410f4d47acb19728929530f716ce7
treef1bc9f20c69d1245e1c7d70d384f3c17bcbdfa8c
parentc7d2b22c26e29ed54e5b4245ba282edd67c7a42f
ASoC: Cache connected input and output recursions

The number of connected input and output endpoints for a given widgets
can't change during a DAPM run so there is no need to redo the recursion
through branches of the tree we've already visited. Doing this on one of
my test systems gives an improvement of:

         Power    Path   Neighbour
Before:  63       607    731
After:   63       141    181

which scales up well as more widgets are involved in paths.

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