Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e044e964 authored by Walter Yang's avatar Walter Yang
Browse files

ASoC: msm8x10-wcd: Reduce pop noise when earpiece is switched fast



In some scenarios, earpiece will be switched on just after turned off,
which will cause the audible pop noise in earpiece.
And if customer increases the EAR PA gain, this noise can be much louder.
So enable the SND_SOC_DAPM_POST_PMD event for EAR PA kcontrol
to stablize the PA.

Change-Id: I8991e268e5d161ab14e19ef4bb7e60211758c4f2
CRs-fixed: 591848
Signed-off-by: default avatarWalter Yang <yandongy@codeaurora.org>
parent 6d52439a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2311,7 +2311,8 @@ static const struct snd_soc_dapm_widget msm8x10_wcd_dapm_widgets[] = {
	SND_SOC_DAPM_OUTPUT("EAR"),

	SND_SOC_DAPM_PGA_E("EAR PA", MSM8X10_WCD_A_RX_EAR_EN, 4, 0, NULL, 0,
			msm8x10_wcd_codec_enable_ear_pa, SND_SOC_DAPM_POST_PMU),
			msm8x10_wcd_codec_enable_ear_pa,
			SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),

	SND_SOC_DAPM_MIXER("DAC1", MSM8X10_WCD_A_RX_EAR_EN, 6, 0, dac1_switch,
		ARRAY_SIZE(dac1_switch)),