ASoC: Allow per-route connectedness checks for supplies
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Sep 2009 17:59:05 +0000 (18:59 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Sep 2009 18:24:56 +0000 (19:24 +0100)
commit215edda3adf502ccdf3a358ab35b616e7abd25ff
treeb0423de56c23f0410608fdb31e6adb49aec503dc
parent341c9b84bc01040bd5c75140303e32f6b10098f3
ASoC: Allow per-route connectedness checks for supplies

Some chips with complex internal supply (particularly clocking)
arragements may have multiple options for some of the supply
connections. Since these don't affect user-visible audio routing
the expectation would be that they would be managed automatically
by one of the drivers.

Support these users by allowing routes to have a connected function
which is queried before the connectedness of the path is checked as
normal. Currently this is only done for supplies, other widgets
could be supported but are not currently since the expectation for
them is that audio routing will be under the control of userspace.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c