From 974f3b69b4787a7bafb117a6285594a6dc6b6301 Mon Sep 17 00:00:00 2001 From: Phani Kumar Uppalapati Date: Wed, 5 Apr 2017 11:45:51 -0700 Subject: [PATCH] Revert "ASoC: wcd9335: enable APC in Tx path" This reverts 'commit 95939f7808e6 ("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: Phani Kumar Uppalapati --- sound/soc/codecs/wcd9335.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index d533984558f0..736270330074 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -5906,8 +5906,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); @@ -5934,7 +5932,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) {