UPSTREAM: ARM: dts: rockchip: increase the mclk_fs to 512 for kylin board
authorXing Zheng <zhengxing@rock-chips.com>
Fri, 29 Jan 2016 08:49:21 +0000 (16:49 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 31 May 2016 08:43:26 +0000 (16:43 +0800)
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.

Change-Id: I1fd36449bb5b3d6e35b9cd7b8c3165736123515f
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(cherry picked from git.kernel.org next/linux-next.git master
 commit f6bb9d5f30d6986c4fdce1ed5a36088a0c30c544)

arch/arm/boot/dts/rk3036-kylin.dts

index b754613b9a9afbf6f938d331a16a5da77f87a350..d5913fe128eed0e7b39a8a8ff650bf73f57b63ac 100644 (file)
@@ -78,7 +78,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";