[PATCH] ASoC: rockchip: i2s-tdm: add I2S_XFER to register defaults
From: Yang Siyuan
Date: Fri Nov 27 2026 - 10:32:49 EST
rockchip_i2s_tdm_reg_defaults[] is missing I2S_XFER (0x1c), which resets
to 0 (TX and RX disabled). The driver uses a flat regcache and calls
regmap_update_bits() on I2S_XFER from rockchip_snd_xfer_sync_reset()
before that register has been written, so regcache_flat_read() hits an
invalid cache entry and warns:
rockchip-i2s-tdm: using zero-initialized flat cache, this may cause
unexpected behavior
Add the reset value so the flat cache starts with the actual hardware
state.
Tested on a Rockchip RK3566 board; no functional change.
Signed-off-by: Yang Siyuan <hsyysy@xxxxxxx>
---
sound/soc/rockchip/rockchip_i2s_tdm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c
index 75e6cab..a6efd92 100644
--- a/sound/soc/rockchip/rockchip_i2s_tdm.c
+++ b/sound/soc/rockchip/rockchip_i2s_tdm.c
@@ -973,6 +973,7 @@ static const struct reg_default rockchip_i2s_tdm_reg_defaults[] = {
{0x08, 0x00001f1f},
{0x10, 0x001f0000},
{0x14, 0x01f00000},
+ {0x1c, 0x00000000}, /* I2S_XFER: TX/RX disabled after reset */
{0x30, 0x00003eff},
{0x34, 0x00003eff},
{0x38, 0x00000707},
--
2.56.1