Skip to content

Commit 4e69cd8

Browse files
aford173Shawn Guo
authored andcommitted
arm64: dts: imx8mp-beacon-kit: Fix Stereo Audio on WM8962
The L/R clock needs to be controlled by the SAI3 instead of the CODEC to properly achieve stereo sound. Doing this allows removes the need for unnecessary clock manipulation to try to get the CODEC's clock in sync with the SAI3 clock, since the CODEC can cope with a wide variety of clock inputs. Fixes: 161af16 ("arm64: dts: imx8mp-beacon-kit: Fix audio_pll2 clock") Fixes: 69e2f37 ("arm64: dts: imx8mp-beacon-kit: Enable WM8962 Audio CODEC") Signed-off-by: Adam Ford <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 203ed20 commit 4e69cd8

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,12 @@
211211

212212
simple-audio-card,cpu {
213213
sound-dai = <&sai3>;
214+
frame-master;
215+
bitclock-master;
214216
};
215217

216218
simple-audio-card,codec {
217219
sound-dai = <&wm8962>;
218-
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO1>;
219-
frame-master;
220-
bitclock-master;
221220
};
222221
};
223222
};
@@ -507,10 +506,9 @@
507506
&sai3 {
508507
pinctrl-names = "default";
509508
pinctrl-0 = <&pinctrl_sai3>;
510-
assigned-clocks = <&clk IMX8MP_CLK_SAI3>,
511-
<&clk IMX8MP_AUDIO_PLL2> ;
512-
assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;
513-
assigned-clock-rates = <12288000>, <361267200>;
509+
assigned-clocks = <&clk IMX8MP_CLK_SAI3>;
510+
assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
511+
assigned-clock-rates = <12288000>;
514512
fsl,sai-mclk-direction-output;
515513
status = "okay";
516514
};

0 commit comments

Comments
 (0)