From: Stephen Warren Date: Thu, 28 Apr 2011 23:38:00 +0000 (-0600) Subject: ASoC: Store a list of widgets in a DAPM mux/mixer kcontrol X-Git-Tag: v3.0-rc1~347^2~1^2~27^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fafd2176f72148e83c64a1f818ff33fceed83d08;p=pandora-kernel.git ASoC: Store a list of widgets in a DAPM mux/mixer kcontrol A future change will allow multiple widgets to be affected by the same control. For example, a single register bit that controls separate muxes in both the L and R audio paths. This change updates the code that handles relevant controls to be able to iterate over a list of affected widgets. Note that only the put functions need significant modification to implement the iteration; the get functions do not need to iterate, nor unify the results, since all affected widgets reference the same kcontrol. When creating the list of widgets, always create a 1-sized list, since the control sharing is not implemented in this change. Signed-off-by: Stephen Warren Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed