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)
commit234c0b8fb0db790aaebec07d1d190e789d8ec7b9
tree5a2d46dc06cb7bff76c948b6f843ca8378e78324
parent236aaa6863581634bd6d599ccf7f7b38deeafdc0
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