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

Commit f6f1a830 authored by Vatsal Bucha's avatar Vatsal Bucha Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: sdm660_cdc: Fix pop after PDR on SDM670 internal codec



Pop is heard after PDR is triggered. This is
resolved by delay sequence change for PA disable
and boost discharge.

CRs-Fixed: 2234580
Change-Id: I3b6f2ae00f5396358c2c166c3b84bd162290c716
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 668b3028
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3762,12 +3762,11 @@ static int msm_anlg_cdc_device_down(struct snd_soc_codec *codec)
	}
	msm_anlg_cdc_boost_off(codec);
	sdm660_cdc_priv->hph_mode = NORMAL_MODE;

	/* 40ms to allow boost to discharge */
	msleep(40);
	/* Disable PA to avoid pop during codec bring up */
	snd_soc_update_bits(codec, MSM89XX_PMIC_ANALOG_RX_HPH_CNP_EN,
			0x30, 0x00);
	/* 40ms to allow boost to discharge */
	msleep(40);
	snd_soc_update_bits(codec, MSM89XX_PMIC_ANALOG_SPKR_DRV_CTL,
			0x80, 0x00);
	snd_soc_write(codec,