ASoC: Correct event flags for WM8958 AIF DACs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 30 Nov 2010 16:59:29 +0000 (16:59 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 1 Dec 2010 11:46:10 +0000 (11:46 +0000)
We need a post notification as we need to shut down the MBC after the
data stops flowing rather than before.

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

index bfd4cf4fde5fac5ef9eaae0c5a5056391d7f8612..51f5cf16b425ed3303f34795b86a06f9d394df67 100644 (file)
@@ -1205,10 +1205,10 @@ SND_SOC_DAPM_AIF_OUT("AIF1ADC1R", "AIF1 Capture",
                     0, WM8994_POWER_MANAGEMENT_4, 8, 0),
 SND_SOC_DAPM_AIF_IN_E("AIF1DAC1L", NULL, 0,
                      WM8994_POWER_MANAGEMENT_5, 9, 0, wm8958_aif_ev,
-                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
 SND_SOC_DAPM_AIF_IN_E("AIF1DAC1R", NULL, 0,
                      WM8994_POWER_MANAGEMENT_5, 8, 0, wm8958_aif_ev,
-                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
 
 SND_SOC_DAPM_AIF_OUT("AIF1ADC2L", "AIF1 Capture",
                     0, WM8994_POWER_MANAGEMENT_4, 11, 0),
@@ -1216,10 +1216,10 @@ SND_SOC_DAPM_AIF_OUT("AIF1ADC2R", "AIF1 Capture",
                     0, WM8994_POWER_MANAGEMENT_4, 10, 0),
 SND_SOC_DAPM_AIF_IN_E("AIF1DAC2L", NULL, 0,
                      WM8994_POWER_MANAGEMENT_5, 11, 0, wm8958_aif_ev,
-                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
 SND_SOC_DAPM_AIF_IN_E("AIF1DAC2R", NULL, 0,
                      WM8994_POWER_MANAGEMENT_5, 10, 0, wm8958_aif_ev,
-                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+                     SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
 
 SND_SOC_DAPM_MIXER("AIF1ADC1L Mixer", SND_SOC_NOPM, 0, 0,
                   aif1adc1l_mix, ARRAY_SIZE(aif1adc1l_mix)),