Hi,
We are having sgtl5000 in our target board. Our audio codec is connected to the I2S1 line and I2C2 line of the processor. I given entry in the board dts file like this:
sound {
compatible = "fsl,imx6ul-sgtl5000",
"fsl,imx-audio-sgtl5000";
model = "imx6ul-sgtl5000";
ssi-controller = <&sai1>;
audio-codec = <&codec>;
audio-routing =
"MIC_IN", "Mic Jack",
"Mic Jack", "Mic Bias",
"Headphone Jack", "HP_OUT",
"Line Out Jack", "LINE_OUT";
mux-int-port = <2>;
mux-ext-port = <3>;
};
&sai1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai1>;
assigned-clocks = <&clks IMX6UL_CLK_SAI1_SEL>,
<&clks IMX6UL_CLK_SAI1>;
assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>; /* need to be check */
assigned-clock-rates = <0>, <12288000>;
status = "okay";
};
codec: sgtl5000@a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
clocks = <&clks IMX6UL_CLK_SAI1>;
};
But while the kernel is booting, it is showing:
sgtl5000: probe of 1-000a failed with error -5
imx-sgtl5000 sound: audmux internal port setup failed
imx-sgtl5000: probe of sound failed with error -22
...
...
ALSA device list:
No soundcards found.
Hi Igor,
I tried to reply to that mail list. But not able to do that.
Hi Sourabh,
I have a trouble with the sgtl5000 on imx6ul board,too.The error is same with you, whether you solve this problem? cound you give me some advices? Thanks a lot.
Best regards
Jun
Hi Sourabh
seems it is for karo tx6ul board
device-tree-rebasing/imx6ul-tx6ul.dtsi at master · RobertCNelson/device-tree-rebasing · GitHub
Hi Igor,
I gone through the link that you shared. There they mentioned two patches along with the changes that need to be done in the dts file.
But I can found only one changes in the file "sound/soc/fsl/Kconfig".
Can you send me the rest of the changes along with changes that are needed to be done in the dts file.
Hi Sourabh
suggest to post this on that mail list
~igor
Hi Sourabh
please check
[PATCH 0/2] ASoC: fsl: make snd-soc-imx-sgtl5000 driver useable on i.MX6UL
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------