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

Commit 914e852c authored by Laxminath Kasam's avatar Laxminath Kasam
Browse files

ASoC: msm8x16-wcd: remove setting ADC gain in driver



In case ADC TX FE gain is set in driver while powerup,
it overrides user setting from mixer_paths xml.

Change-Id: I9f3d01f0b0be0661a442899840b63458a812a94f
CRs-Fixed: 668665
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent b60fa5d7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1516,7 +1516,6 @@ static int msm8x16_wcd_codec_enable_adc(struct snd_soc_dapm_widget *w,
	case SND_SOC_DAPM_POST_PMU:
		snd_soc_update_bits(codec, adc_reg, 1 << init_bit_shift, 0x00);
		usleep_range(CODEC_DELAY_1_MS, CODEC_DELAY_1_1_MS);
		snd_soc_update_bits(codec, w->reg, 0x30, 0x30);
		break;
	case SND_SOC_DAPM_POST_PMD:
		msm8x16_wcd_codec_enable_adc_block(codec, 0);
@@ -1529,7 +1528,6 @@ static int msm8x16_wcd_codec_enable_adc(struct snd_soc_dapm_widget *w,
			snd_soc_update_bits(codec,
				MSM8X16_WCD_A_DIGITAL_CDC_CONN_TX2_CTL,
				0x03, 0x02);
		snd_soc_update_bits(codec, w->reg, 0x30, 0x00);

		break;
	}