summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudheer Papothi <spapothi@codeaurora.org>2015-11-26 00:33:19 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:13:15 -0700
commit5843838a49a5dde0a0ea17e91bc75d9f54ae909d (patch)
tree9ee787af3c75ca58787ea778b4dfedde7ba97efa
parentc2c5e11c287170a7cb81dc7ebd94b329799bb675 (diff)
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: Sudheer Papothi <spapothi@codeaurora.org>
-rwxr-xr-xsound/soc/codecs/wcd9335.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c
index a7a5735b3f2e..14c58df61614 100755
--- a/sound/soc/codecs/wcd9335.c
+++ b/sound/soc/codecs/wcd9335.c
@@ -3460,6 +3460,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,