Skip to content

Commit aa1a410

Browse files
Peter Ujfalusibroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent fac2f3e commit aa1a410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/twl6040.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = {
11641164
SND_SOC_DAPM_OUT_DRV_E("Earphone Driver",
11651165
TWL6040_REG_EARCTL, 0, 0, NULL, 0,
11661166
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),
11681168
SND_SOC_DAPM_OUT_DRV("Vibra Left Driver",
11691169
TWL6040_REG_VIBCTLL, 0, 0, NULL, 0),
11701170
SND_SOC_DAPM_OUT_DRV("Vibra Right Driver",

0 commit comments

Comments
 (0)