diff options
author | Vatsal Bucha <vbucha@codeaurora.org> | 2020-05-07 10:30:39 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-05-10 22:49:43 -0700 |
commit | 645fbe2cb321b5657120da39a90021ea6fd94949 (patch) | |
tree | 57092e2b4e436aa4aa7546baee8e2ca464f0da57 | |
parent | 1038df1f062f935cc44c463c7dbb63934b80cca8 (diff) | |
download | msm-extra-645fbe2cb321b5657120da39a90021ea6fd94949.tar.gz |
ASoC: wcd938x: Resolve noise during dmic record
Channel rate is set same as clk rate resulting in
noise during dmic record. Set channel rate for dmic
based on port params not clk rate to resolve noise.
Change-Id: Ie65c72be5ed3719a1204f800571329ea5b5985fc
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
-rw-r--r-- | asoc/codecs/wcd938x/wcd938x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/asoc/codecs/wcd938x/wcd938x.c b/asoc/codecs/wcd938x/wcd938x.c index abd3106f..26174dcd 100644 --- a/asoc/codecs/wcd938x/wcd938x.c +++ b/asoc/codecs/wcd938x/wcd938x.c @@ -1377,8 +1377,7 @@ static int wcd938x_codec_enable_dmic(struct snd_soc_dapm_widget *w, /* enable clock scaling */ snd_soc_component_update_bits(component, WCD938X_DIGITAL_CDC_DMIC_CTL, 0x06, 0x06); - wcd938x_tx_connect_port(component, DMIC0 + (w->shift), - SWR_CLK_RATE_2P4MHZ, true); + wcd938x_tx_connect_port(component, DMIC0 + (w->shift), 0, true); break; case SND_SOC_DAPM_POST_PMD: wcd938x_tx_connect_port(component, DMIC0 + (w->shift), 0, |