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

Commit 86d47b71 authored by Deven Patel's avatar Deven Patel Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: codecs: Use MI2S Tx port for codec mclk control



Using MI2S Rx port for codec mclk control will leave the clock
running if use case is terminated. Switching to Tx port fixes
this issue.

Change-Id: I4f5e624fcf7aad35e736f490f33c776e2b54b9a9
Signed-off-by: default avatarDeven Patel <cdevenp@codeaurora.org>
parent a8371783
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ static int audio_ext_lpass_mclk_prepare(struct clk *clk)
	memcpy(lpass_clk, &lpass_default, sizeof(struct afe_clk_cfg));
	lpass_clk->clk_val2 = Q6AFE_LPASS_OSR_CLK_12_P288_MHZ;
	lpass_clk->clk_set_mode = Q6AFE_LPASS_MODE_CLK2_VALID;
	ret = afe_set_lpass_clock(MI2S_RX, lpass_clk);
	ret = afe_set_lpass_clock(MI2S_TX, lpass_clk);
	if (ret < 0) {
		pr_err("%s afe_set_lpass_clock failed, ret = %d\n",
			__func__, ret);
@@ -213,7 +213,7 @@ static void audio_ext_lpass_mclk_unprepare(struct clk *clk)
	memcpy(lpass_clk, &lpass_default, sizeof(struct afe_clk_cfg));
	lpass_clk->clk_val2 = 0;
	lpass_clk->clk_set_mode = Q6AFE_LPASS_MODE_CLK2_VALID;
	ret = afe_set_lpass_clock(MI2S_RX, lpass_clk);
	ret = afe_set_lpass_clock(MI2S_TX, lpass_clk);
	if (ret < 0)
		pr_err("%s: afe_set_lpass_clock failed, ret = %d\n",
			__func__, ret);