From 724daf925ad2bee59540029635f465bda3cf7701 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Tue, 20 Aug 2024 09:20:32 +0800 Subject: [PATCH] ASoC: rockchip: i2s: Fix the max register Fix the get_fifo_count always return zero. Fixes: 336c6579dbd1 ("ASoC: rockchip: i2s: Add support for DLP") Signed-off-by: Sugar Zhang Change-Id: I221c2ccfb9f88e6bc1c0f28b53f5f10906d3d397 --- sound/soc/rockchip/rockchip_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 05f3c0b1c3c5..452f713ea7ad 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -970,7 +970,7 @@ static const struct regmap_config rockchip_i2s_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, - .max_register = I2S_RXDR, + .max_register = I2S_RXFIFOLR, .reg_defaults = rockchip_i2s_reg_defaults, .num_reg_defaults = ARRAY_SIZE(rockchip_i2s_reg_defaults), .writeable_reg = rockchip_i2s_wr_reg,