mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Brent Roman <genosenosor@gmail.com>
|
|
Date: Fri, 4 Jul 2025 22:45:29 -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
|
|
|
|
@@ -693,6 +694,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
|
|
|