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

Commit 357b2adf authored by Gopikrishnaiah Anandan's avatar Gopikrishnaiah Anandan
Browse files

ASoC: wcd9320: Fix the VI feedback enable/disable sequence



Speaker protection is supported only in slimbus mode.
Voltage and current data is captured using TX11/TX12
ports in slimbus mode.For I2S mode Voltage and current
data can be captured using TX9 and TX10 ports.
Quad mic recording usecase uses TX9/TX10 ports, hence
in slimbus mode TX9/TX10 ports shouldn't be used for
speaker protection.Change removes the enable/disable sequence.

CRs-Fixed: 561097
Change-Id: I9642e703d3ab884ae1260569020853b71e26709d
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
parent 4bb26321
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -5021,12 +5021,6 @@ static int taiko_codec_enable_slimvi_feedback(struct snd_soc_dapm_widget *w,
		/*Enable spkr VI clocks*/
		snd_soc_update_bits(codec,
		TAIKO_A_CDC_CLK_TX_CLK_EN_B2_CTL, 0xC, 0xC);
		/*Enable Voltage Decimator*/
		snd_soc_update_bits(codec,
		TAIKO_A_CDC_CONN_TX_SB_B9_CTL, 0x1F, 0x12);
		/*Enable Current Decimator*/
		snd_soc_update_bits(codec,
		TAIKO_A_CDC_CONN_TX_SB_B10_CTL, 0x1F, 0x13);
		(void) taiko_codec_enable_slim_chmask(dai, true);
		ret = wcd9xxx_cfg_slim_sch_tx(core, &dai->wcd9xxx_ch_list,
					dai->rate, dai->bit_width,
@@ -5038,13 +5032,6 @@ static int taiko_codec_enable_slimvi_feedback(struct snd_soc_dapm_widget *w,
		if (ret)
			pr_err("%s error in close_slim_sch_tx %d\n",
				__func__, ret);
		/*Disable Voltage decimator*/
		snd_soc_update_bits(codec,
		TAIKO_A_CDC_CONN_TX_SB_B9_CTL, 0x1F, 0x0);
		/*Disable Current decimator*/
		snd_soc_update_bits(codec,
		TAIKO_A_CDC_CONN_TX_SB_B10_CTL, 0x1F, 0x0);
		/*Disable spkr VI clocks*/
		snd_soc_update_bits(codec, TAIKO_A_CDC_CLK_TX_CLK_EN_B2_CTL,
				0xC, 0x0);
		/*Disable V&I sensing*/