diff mbox series

[1/2] ASoC: codecs: lpass-tx-macro: set npl clock rate correctly

Message ID 20210331171235.24824-1-srinivas.kandagatla@linaro.org (mailing list archive)
State Accepted
Commit b861106f3cd693f944ba46d9ea8744a3fbfd14db
Headers show
Series [1/2] ASoC: codecs: lpass-tx-macro: set npl clock rate correctly | expand

Commit Message

Srinivas Kandagatla March 31, 2021, 5:12 p.m. UTC
NPL clock rate is twice the MCLK rate, so set this correctly to
avoid soundwire timeouts.

Fixes: c39667ddcfc5 ("ASoC: codecs: lpass-tx-macro: add support for lpass tx macro")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 sound/soc/codecs/lpass-tx-macro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown April 1, 2021, 4:15 p.m. UTC | #1
On Wed, 31 Mar 2021 18:12:34 +0100, Srinivas Kandagatla wrote:
> NPL clock rate is twice the MCLK rate, so set this correctly to
> avoid soundwire timeouts.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: codecs: lpass-tx-macro: set npl clock rate correctly
      commit: b861106f3cd693f944ba46d9ea8744a3fbfd14db
[2/2] ASoC: codecs: lpass-rx-macro: set npl clock rate correctly
      commit: adfc3ed7dcb98f7411d3632e3bdf81690294fe7d

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c
index 36d7a6442cdb..e8c6c738bbaa 100644
--- a/sound/soc/codecs/lpass-tx-macro.c
+++ b/sound/soc/codecs/lpass-tx-macro.c
@@ -1811,7 +1811,7 @@  static int tx_macro_probe(struct platform_device *pdev)
 
 	/* set MCLK and NPL rates */
 	clk_set_rate(tx->clks[2].clk, MCLK_FREQ);
-	clk_set_rate(tx->clks[3].clk, MCLK_FREQ);
+	clk_set_rate(tx->clks[3].clk, 2 * MCLK_FREQ);
 
 	ret = clk_bulk_prepare_enable(TX_NUM_CLKS_MAX, tx->clks);
 	if (ret)