ASoC: TWL4030: Capture route DAPM event fix
authorPeter Ujfalusi <peter.ujfalusi@Nokia.com>
Mon, 26 Jul 2010 06:59:15 +0000 (09:59 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 27 Jul 2010 10:43:40 +0000 (11:43 +0100)
There is no need to handle POST_PMU, POST_PMD event with
the Capture Route widget.
It is enough to handle POST_REG event, since that will come
when the user changes the routing, and we will switch the needed
bits in the registers.

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

index bd557c2bcb8c0b74c8569f35fa494915716ac8d6..d401c597d38f7e0f8b7c21372235016d4ab52902 100644 (file)
@@ -1432,11 +1432,9 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
           TX2 Left/Right: either analog Left/Right or Digimic1 */
        SND_SOC_DAPM_MUX_E("TX1 Capture Route", SND_SOC_NOPM, 0, 0,
                &twl4030_dapm_micpathtx1_control, micpath_event,
-               SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD|
                SND_SOC_DAPM_POST_REG),
        SND_SOC_DAPM_MUX_E("TX2 Capture Route", SND_SOC_NOPM, 0, 0,
                &twl4030_dapm_micpathtx2_control, micpath_event,
-               SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD|
                SND_SOC_DAPM_POST_REG),
 
        /* Analog input mixers for the capture amplifiers */