]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Break dapm_set_path_status() appart
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 28 Feb 2014 07:31:12 +0000 (08:31 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 1 Mar 2014 03:03:36 +0000 (12:03 +0900)
commit841e83df1ad03a4ed8ad37694539040386701d81
tree5a2d46dc06cb7bff76c948b6f843ca8378e78324
parentd2f97e707744a3d4dfafd5d7ae088850751d554f
ASoC: dapm: Break dapm_set_path_status() appart

There are three different completely independent code paths in
dapm_set_path_status(). One of them is never used at all and the other two (one
for mixers, one for MUXs) have their distincive callsites that always go onto
the same path. Breaking the function into two parts allows us to reduce the code
size and in the MUX case also do some optimizations to avoid having to calcualte
the selected item for each item again.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c