aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2011-10-13 08:05:43 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-13 12:19:40 -0400
commitaa1a41082fb8c47893186103bf53e96708041e1c (patch)
tree6bf84ba198e23d1ad51e229f73bbb16e59262d45 /sound
parentfac2f3e4dccfd97f5146065540486dd3f6a2bca5 (diff)
ASoC: twl6040: Change event ordering for Earphone driver
It is better to switch HS Power Mode (if it was in low power mode) before we enable the Earpiece driver. The switched off EP driver can filter out noise coming from the Low Power to High Performance transition on the HSL DAC. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/twl6040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
index 8f033f0a42f5..eadece8f0164 100644
--- a/sound/soc/codecs/twl6040.c
+++ b/sound/soc/codecs/twl6040.c
@@ -1164,7 +1164,7 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = {
1164 SND_SOC_DAPM_OUT_DRV_E("Earphone Driver", 1164 SND_SOC_DAPM_OUT_DRV_E("Earphone Driver",
1165 TWL6040_REG_EARCTL, 0, 0, NULL, 0, 1165 TWL6040_REG_EARCTL, 0, 0, NULL, 0,
1166 twl6040_power_mode_event, 1166 twl6040_power_mode_event,
1167 SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD), 1167 SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
1168 SND_SOC_DAPM_OUT_DRV("Vibra Left Driver", 1168 SND_SOC_DAPM_OUT_DRV("Vibra Left Driver",
1169 TWL6040_REG_VIBCTLL, 0, 0, NULL, 0), 1169 TWL6040_REG_VIBCTLL, 0, 0, NULL, 0),
1170 SND_SOC_DAPM_OUT_DRV("Vibra Right Driver", 1170 SND_SOC_DAPM_OUT_DRV("Vibra Right Driver",