linux-stable/sound/soc/rockchip
Alibek Omarov 87358401ed ASoC: rockchip: i2s-tdm: Fix trcm mode by setting clock on right mclk
[ Upstream commit ccd8d753f0 ]

When TRCM mode is enabled, I2S RX and TX clocks are synchronized through
selected clock source. Without this fix BCLK and LRCK might get parented
to an uninitialized MCLK and the DAI will receive data at wrong pace.

However, unlike in original i2s-tdm driver, there is no need to manually
synchronize mclk_rx and mclk_tx, as only one gets used anyway.

Tested on a board with RK3568 SoC and Silergy SY24145S codec with enabled and
disabled TRCM mode.

Fixes: 9e2ab4b18e ("ASoC: rockchip: i2s-tdm: Fix inaccurate sampling rates")
Signed-off-by: Alibek Omarov <a1ba.omarov@gmail.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://msgid.link/r/20240604184752.697313-1-a1ba.omarov@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:31:44 +02:00
..
Kconfig
Makefile
rk3288_hdmi_analog.c
rk3399_gru_sound.c
rockchip_i2s.c ASoC: rockchip: i2s: use regmap_read_poll_timeout_atomic to poll I2S_CLR 2022-09-30 17:12:27 +01:00
rockchip_i2s.h
rockchip_i2s_tdm.c ASoC: rockchip: i2s-tdm: Fix trcm mode by setting clock on right mclk 2024-07-05 09:31:44 +02:00
rockchip_i2s_tdm.h
rockchip_max98090.c
rockchip_pdm.c ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_pdm_runtime_resume() 2022-12-31 13:33:06 +01:00
rockchip_pdm.h
rockchip_rt5645.c
rockchip_spdif.c ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume() 2022-12-31 13:33:07 +01:00
rockchip_spdif.h