ASoC: Allow DAPM pin operations to match any context
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Apr 2011 02:38:14 +0000 (11:38 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 9 Apr 2011 02:25:20 +0000 (11:25 +0900)
commit0d86733cce776ca0262b850ee8eb46bc52dc8244
treee0bac583719dd5f37e7c1199cae81b077aeb6a59
parent52ba67bf85889828b3766207fa43ce7159c84c78
ASoC: Allow DAPM pin operations to match any context

The DAPM pin operations currently require that the specific DAPM context
that the pin being operated in is contained in be specified. With multi
component and especially with the addition of a per-card DAPM context
this isn't ideal as it means that things like disabling unused pins on
CODECs require looking up the CODEC DAPM context.

Fix this by falling back to matching a widget in any context if there isn't
a match in the current context. The code isn't ideal currently but will do
the job.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-dapm.c