ASoC: TWL4030: Capture route runtime DAPM ordering fix
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Tue, 3 Aug 2010 09:01:01 +0000 (12:01 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 3 Aug 2010 23:42:39 +0000 (00:42 +0100)
commitbda7d2a862e6b788bca2d02d38a07966a9c92e48
tree0ddfb02805bc532161bbba899d2fbddebce07d88
parent116bcd9cf22c00c22402c2a2be6ef8e81289a574
ASoC: TWL4030: Capture route runtime DAPM ordering fix

Fix the ordering problem in DAPM domain, when the user
changes between digital and analog sources during active
capture (or loopback) scenario.
Before this patch, when the user changed from analog source
to digital there were a short time, when the codec enabled
analog mic bias (2.2 volts) instead of the correct digital
mic bias (1.8 volts) to the digital microphones.
This behaviour caused by the former implementation of
selecting the correct type of bias. This was done at the
POST_REG event of the DAPM_MUX_E("TXx Capture Route")
widget.
By moving the bias type selection as DAPM_SUPPLY and
connecting it to the corresponding digimic widget the
problematic situation can be avoided.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/twl4030.c