• Peter Ujfalusi's avatar
    ASoC: TWL4030: Capture route runtime DAPM ordering fix · bda7d2a8
    Peter Ujfalusi authored
    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: default avatarPeter Ujfalusi <peter.ujfalusi@nokia.com>
    Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
    bda7d2a8
twl4030.c 73 KB