Hi,
I have a custom board with imx6dl cpu. We interfaced a SGTL5000 codec with fixed crystal sys_clk at 12.288MHz.
I used the standard imx-sgtl5000.c machine driver and created a fixed clock in the device tree to give to the codec.
audioclk: ext12Mz {
compatible = "fixed-clock";
clock-frequency = <12288000>;
| reg=<0>; | |
| #clock-cells = <0>; |
};
};
sound {
compatible = "fsl,imx-audio-sgtl5000";
model = "imx6dl-custom-sgtl5000";
cpu-dai = <&ssi1>;
audio-codec = <&codec>;
audio-routing =
| | "MIC_IN", "Mic Jack", |
| | | "Mic Jack", "Mic Bias", |
| | | "Headphone Jack", "HP_OUT", |
| | | "Ext Spk", "LINE_OUT"; |
mux-int-port = <1>;
mux-ext-port = <4>;
};
| codec: sgtl5000 { |
| | compatible = "fsl,sgtl5000"; |
| | clocks = <&audioclk>; |
| | reg = <0x0a>; |
| | VDDA-supply = <®_3p3v>; |
VDDIO-supply = <®_3p3v>;
&ssi1 {
fsl,mode = "i2s-slave";
status = "okay";
};
The sound is working but twice too fast and with some strange numeric noise.
I feel the system is playing stereo sound in a mono way so I hear left and right channel on a single channel...
Any thoughts?
Best regards,
Benoit