]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: fsl_sai: allow to set mclk rate with zero clk_id
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 28 Mar 2025 08:57:41 +0000 (16:57 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 6 Apr 2025 22:23:25 +0000 (23:23 +0100)
commit78b3bcfd5697f486946f559f56dbf78c30e22f27
tree640d2103c2f141b25b4174bd2c826a76416f3b1e
parent0af2f6be1b4281385b618cb86ad946eded089ac8
ASoC: fsl_sai: allow to set mclk rate with zero clk_id

If clk_id is zero, it means FSL_SAI_CLK_BUS in fsl_sai_set_dai_sysclk(),
as the clk[FSL_SAI_CLK_BUS]'s rate can't be changed, there is no rate
changed for mclk.

But with audio-graph-card, the clk_id is always zero, in order to allow
to set mclk rate with zero clk_id, update the condition to be if clk_id is
zero, then set the FSL_SAI_CLK_MAST1's rate. This would not change the
original function for master mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20250328085744.1893434-2-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c