ASoC: dapm: Don't create routes when creating kcontrols
authorMark Brown <broonie@linaro.org>
Mon, 12 Aug 2013 22:28:42 +0000 (23:28 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 13 Aug 2013 09:19:57 +0000 (10:19 +0100)
commit946d92a100f6c36b1c53922d5105b3c19a59173d
tree87dbb9ac2103b823c1f2ef85a8612bc687e8d817
parentf2e537425a6eae2d70ece5f62c26611f316b70f9
ASoC: dapm: Don't create routes when creating kcontrols

Attempting to create the route as part of adding a mux control causes us
to attempt to add the same route twice since we loop over all sources
for the mux after creating the control. Instead do the addition in the
callers.

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