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

Commit 7b47a769 authored by Sudheer Papothi's avatar Sudheer Papothi
Browse files

ASoC: wcd9335: Re-align ANC co-efficient pointers for EAR path



Re-align ANC(Active Noise Cancellation) co-efficient pointers for
ANC functionality to work properly on EAR path.

Change-Id: Ied6f3372e2172c9205478e807a1b42510bf49505
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent ac6766f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3444,6 +3444,11 @@ static int tasha_codec_enable_anc(struct snd_soc_dapm_widget *w,
		i = 0;
		anc_cal_size = anc_writes_size;

		if (!strcmp(w->name, "RX INT0 DAC"))
			tasha_realign_anc_coeff(codec,
					WCD9335_CDC_ANC0_IIR_COEFF_1_CTL,
					WCD9335_CDC_ANC0_IIR_COEFF_2_CTL);

		if (!strcmp(w->name, "RX INT1 DAC") ||
			!strcmp(w->name, "RX INT3 DAC")) {
			tasha_realign_anc_coeff(codec,