ASoC: Auto disconnect pins from all DAPM contexts
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 16 Jun 2014 16:13:04 +0000 (18:13 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 20:06:56 +0000 (21:06 +0100)
commit7df3788410e674423375b88e2d95c46e4015f5f5
treead672a6efd1eb7920a2d414d0e41a6e28cb751bf
parentbb13109d85ba5f8009f1a26d840e70198537a4e3
ASoC: Auto disconnect pins from all DAPM contexts

Currently only pins in CODEC DAPM contexts are automatically marked as
non-connected if the card has the fully_routed flag set. This makes sense since
widgets which qualify for auto-disconnection are only found in CODEC DAPM
contexts. But with componentisation this is going to change, so consider all
widgets for auto-disconnection.

Also it is probably faster to walk the widgets list only once rather than once
for each CODEC.

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