From: Mark Brown Date: Wed, 6 Apr 2011 02:38:14 +0000 (+0900) Subject: ASoC: Allow DAPM pin operations to match any context X-Git-Tag: v3.0-rc1~347^2~1^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d86733cce776ca0262b850ee8eb46bc52dc8244;p=pandora-kernel.git 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 Acked-by: Liam Girdwood --- Reading git-diff-tree failed