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

Commit 645fbe2c authored by Vatsal Bucha's avatar Vatsal Bucha Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 1038df1f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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,