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

Commit 855ac20b authored by Laxminath Kasam's avatar Laxminath Kasam Committed by Banajit Goswami
Browse files

ASoC: msm: Update proper clock frequency for slave mode



Clock framework in LPASS expects valid clock frequency
for slave mode (EBIT) as well. This is required to maintain
corresponding voltage as per respective frequencies by clock
team in frequency plan. Avoid sending zero clock frequency
in clock enable even though it is slave mode.

CRs-Fixed: 2028063
Change-Id: Ie9c28a921ee7bbeda67b0591f0caf0a88ea2d19c
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent 7244ee31
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2412,9 +2412,6 @@ static void update_mi2s_clk_val(int dai_id, int stream)
		mi2s_clk[dai_id].clk_freq_in_hz =
		    mi2s_tx_cfg[dai_id].sample_rate * 2 * bit_per_sample;
	}

	if (!mi2s_intf_conf[dai_id].msm_is_mi2s_master)
		mi2s_clk[dai_id].clk_freq_in_hz = 0;
}

static int msm_mi2s_set_sclk(struct snd_pcm_substream *substream, bool enable)