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

Commit 7652c371 authored by Santosh Mardi's avatar Santosh Mardi Committed by Xiaojun Sang
Browse files

ASoC: msm8x16: configure IN1 in differntial mode



Configure all the IN1 in differntial mode to avoid the
GSM BUZZ noise, update the mode at SND_SOC_DAPM_PRE_PMU.

CRs-Fixed: 958872
Change-Id: I497b3925f90434c973ef911467f9c4af367cc858
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 184e2ced
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3426,6 +3426,16 @@ static int msm8x16_wcd_codec_enable_micbias(struct snd_soc_dapm_widget *w,
			snd_soc_update_bits(codec, w->reg, 0x60, 0x00);
		} else if (strnstr(w->name, internal3_text, strlen(w->name))) {
			snd_soc_update_bits(codec, micb_int_reg, 0x2, 0x2);
		/*
		 * update MSM8X16_WCD_A_ANALOG_TX_1_2_ATEST_CTL_2
		 * for external bias only, not for external2.
		*/
		} else if (!strnstr(w->name, external2_text, strlen(w->name)) &&
					strnstr(w->name, external_text,
						strlen(w->name))) {
			snd_soc_update_bits(codec,
					MSM8X16_WCD_A_ANALOG_TX_1_2_ATEST_CTL_2,
					0x02, 0x02);
		}
		if (!strnstr(w->name, external_text, strlen(w->name)))
			snd_soc_update_bits(codec,