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

Commit ca6055e8 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati Committed by Gerrit - the friendly Code Review server
Browse files

Revert "ASoC: wcd9335: enable APC in Tx path"



This reverts 'commit 95939f78 ("ASoC: wcd9335:
enable APC in Tx path")'
APC (Automatic Peak Control) causes volume difference
in the audio signal if two ADCs share the same mic
input.

CRs-Fixed: 2021320
Change-Id: I63d83fd3e511f40f4da82afb4993f360b4c9f058
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 3a396301
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -5575,8 +5575,6 @@ static int tasha_codec_enable_dec(struct snd_soc_dapm_widget *w,
					    CF_MIN_3DB_150HZ << 5);
		/* Enable TX PGA Mute */
		snd_soc_update_bits(codec, tx_vol_ctl_reg, 0x10, 0x10);
		/* Enable APC */
		snd_soc_update_bits(codec, dec_cfg_reg, 0x08, 0x08);
		break;
	case SND_SOC_DAPM_POST_PMU:
		snd_soc_update_bits(codec, hpf_gate_reg, 0x01, 0x00);
@@ -5603,7 +5601,6 @@ static int tasha_codec_enable_dec(struct snd_soc_dapm_widget *w,
		hpf_cut_off_freq =
			tasha->tx_hpf_work[decimator].hpf_cut_off_freq;
		snd_soc_update_bits(codec, tx_vol_ctl_reg, 0x10, 0x10);
		snd_soc_update_bits(codec, dec_cfg_reg, 0x08, 0x00);
		if (cancel_delayed_work_sync(
		    &tasha->tx_hpf_work[decimator].dwork)) {
			if (hpf_cut_off_freq != CF_MIN_3DB_150HZ) {