]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e9400ba9bdd19a68d456d4be3b967016f17b41e
tree0ddfb02805bc532161bbba899d2fbddebce07d88
parente5e2f3e67b438cac99e789bacb47fa26daad60c1
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