ASoC: Add support for sequencing within
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 15 Jan 2011 13:40:50 +0000 (13:40 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 19 Jan 2011 13:02:32 +0000 (13:02 +0000)
commit20e4859dedfc7e7b620d1756b29f8483c5be5fcc
treee7fff82807a50a5e0930438d7bf2f93826a95ec7
parent828a842f2e02de5d884ee14bd3c21ddbc77ec60e
ASoC: Add support for sequencing within

With larger devices there may be many widgets of the same type in series
in an audio path. Allow drivers to specify an additional level of ordering
within each widget type by adding a subsequence number to widgets and then
splitting operations on widgets so that widgets of the same type but
different sequence numbers are processed separately.  A typical example
would be a supply widget which requires that another widget be enabled
to provide power or clocking.

SND_SOC_DAPM_PGA_S() and SND_SOC_DAPM_SUPPLY_S() macros are provided
allowing this to be used with PGAs and supplies as these are the most
commonly affected widgets.

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