I have a imx6q custom board with using sgtl5000 for sound card ,I configed the devicetree and build the kernel 3.14.52,when I use command "aplay xxx.wav",I cound not hear any sound ,can any one give any advice ?
here are some configure:
&ssi1 {
fsl,mode = "i2s-slave";
status = "okay";
};
&audmux {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audmux>;
status = "okay";
};
codec: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
clocks = <&clks 201>;
VDDA-supply = <®_3p3v>;
VDDIO-supply = <®_3p3v>;
sound {
compatible = "fsl,imx6q-sabresd-sgtl5000",
"fsl,imx-audio-sgtl5000";
model = "imx6q-sabresd-sgtl5000";
cpu-dai = <&ssi1>;
audio-codec = <&codec>;
audio-routing =
"MIC_IN", "Mic Jack",
"Mic Jack", "Mic Bias",
"Headphone Jack", "HP_OUT";
mux-int-port = <1>;
mux-ext-port = <3>;
};
pinctrl_audmux: audmuxgrp {
fsl,pins = <
MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0
MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0
MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0
MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0
>;
};
Solved! Go to Solution.
sgtl5000 is not used on nxp i.MX6 reference boards, there are no examples for sgtl5000
with them. For sgtl5000 examples please refer to boundary devices schematic
BD-SL-i.MX6 sabre_lite-revD.pdf p.7
https://boundarydevices.com/wp-content/uploads/2014/11/sabre_lite-revD.pdf
use boundary devices linux kernels and choose agtl5000 settings for that board, use them
as example
Best regards
igor
Hi jingyang
what bsp used in the case, please check BD bsps where sgtl5000 is well supported
Audio output selection under Linux on i.MX6 - Boundary Devices
please check with oscillosope clock signals, in particular MCLK.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,I have check the board,the MCLK is 24MHz,I don't sure the sch is right .can you help me check it?
sgtl5000 is not used on nxp i.MX6 reference boards, there are no examples for sgtl5000
with them. For sgtl5000 examples please refer to boundary devices schematic
BD-SL-i.MX6 sabre_lite-revD.pdf p.7
https://boundarydevices.com/wp-content/uploads/2014/11/sabre_lite-revD.pdf
use boundary devices linux kernels and choose agtl5000 settings for that board, use them
as example
Best regards
igor
Hi,igorpadkov
the bsp is 3.14.52,and the schematic is below: