armbian-build/patch/kernel/archive/rockchip64-6.17/rk3308-i2s-default-rate.patch
Paolo 35629f641e
Bump rockchip64-edge kernel to 6.17 (#8703)
* bump rockchip64 edge kernel to 6.17

* update rockchip64 edge kernel config to 6.17

* Fixes for wireless drivers for rockchip64-edge 6.17

Patches for:
* uwe5622
* rtl8723ds
* rtl8852bs

* update rtl8852bs and rtl8723ds repository commit hashes
2025-10-03 18:36:42 +02:00

37 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brent Roman <genosenosor@gmail.com>
Date: Sat, 5 Jul 2025 00:35:09 -0700
Subject: Restore rockchip_i2s_tdm default clk rates
sound/soc/rockchip/rockchip_i2s_tdm.c
Signed-off-by: Brent Roman <genosenosor@gmail.com>
---
sound/soc/rockchip/rockchip_i2s_tdm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c
index 111111111111..222222222222 100644
--- a/sound/soc/rockchip/rockchip_i2s_tdm.c
+++ b/sound/soc/rockchip/rockchip_i2s_tdm.c
@@ -22,6 +22,7 @@
#define DRV_NAME "rockchip-i2s-tdm"
+#define DEFAULT_MCLK_FS 256
#define CH_GRP_MAX 4 /* The max channel 8 / 2 */
#define MULTIPLEX_CH_MAX 10
@@ -665,6 +666,9 @@ static int rockchip_i2s_tdm_hw_params(struct snd_pcm_substream *substream,
mclk_rate = i2s_tdm->mclk_rx_freq;
}
+ /* set to default rate if set_sysclk was never called */
+ if (!mclk_rate)
+ mclk_rate = DEFAULT_MCLK_FS * params_rate(params);
err = clk_set_rate(mclk, mclk_rate);
if (err)
return err;
--
Armbian