Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1321566 > unrolled thread

[RFC PATCH] ARM: dts: rockchip: increase the mclk_fs to 512 for kylin board

Started byXing Zheng <zhengxing@rock-chips.com>
First post2016-01-29 09:50 +0100
Last post2016-02-02 22:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [RFC PATCH] ARM: dts: rockchip: increase the mclk_fs to 512 for kylin board Xing Zheng <zhengxing@rock-chips.com> - 2016-01-29 09:50 +0100
    Re: [RFC PATCH] ARM: dts: rockchip: increase the mclk_fs to 512 for kylin board Heiko Stübner <heiko@sntech.de> - 2016-02-02 22:50 +0100

#1321566 — [RFC PATCH] ARM: dts: rockchip: increase the mclk_fs to 512 for kylin board

FromXing Zheng <zhengxing@rock-chips.com>
Date2016-01-29 09:50 +0100
Subject[RFC PATCH] ARM: dts: rockchip: increase the mclk_fs to 512 for kylin board
Message-ID<qWcUG-90-15@gated-at.bofh.it>
If we playback the 8KHz FS audio with the 256 mclk_fs, we need the
mclk = 256 * 8000 = 2.048MHz, the frac div is 594 / 2.048 = 290,
the frac div value 0x00809015 set to the CRU_CLKSEL7_CON will cause
to hang.

We increase the mclk_fs to 512, will get the mclk = 512 * 8000 =
4.096MHz, use 0x01009015 instead of 0x00809015 to work around this
issue. We will keep tracking it.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
---

 arch/arm/boot/dts/rk3036-kylin.dts |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts
index 190f22c..be468f9 100644
--- a/arch/arm/boot/dts/rk3036-kylin.dts
+++ b/arch/arm/boot/dts/rk3036-kylin.dts
@@ -67,7 +67,7 @@
 		compatible = "simple-audio-card";
 		simple-audio-card,format = "i2s";
 		simple-audio-card,name = "rockchip,rt5616-codec";
-		simple-audio-card,mclk-fs = <256>;
+		simple-audio-card,mclk-fs = <512>;
 		simple-audio-card,widgets =
 			"Microphone", "Microphone Jack",
 			"Headphone", "Headphone Jack";
-- 
1.7.9.5

[toc] | [next] | [standalone]


#1324673

FromHeiko Stübner <heiko@sntech.de>
Date2016-02-02 22:50 +0100
Message-ID<qXQZJ-Oy-29@gated-at.bofh.it>
In reply to#1321566
Am Freitag, 29. Januar 2016, 16:49:21 schrieb Xing Zheng:
> If we playback the 8KHz FS audio with the 256 mclk_fs, we need the
> mclk = 256 * 8000 = 2.048MHz, the frac div is 594 / 2.048 = 290,
> the frac div value 0x00809015 set to the CRU_CLKSEL7_CON will cause
> to hang.
> 
> We increase the mclk_fs to 512, will get the mclk = 512 * 8000 =
> 4.096MHz, use 0x01009015 instead of 0x00809015 to work around this
> issue. We will keep tracking it.
> 
> Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>

applied to my dts32 branch for 4.6


Thanks
Heiko

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web