sgtl5000 not working with imx6ul target board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

sgtl5000 not working with imx6ul target board

2,602 次查看
sourabhdas
Contributor III

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.

标签 (1)
标记 (3)
0 项奖励
6 回复数

1,566 次查看
sourabhdas
Contributor III

Hi Igor,

I tried to reply to that mail list. But not able to do that.

0 项奖励

1,566 次查看
lemficb
Contributor II

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

0 项奖励

1,566 次查看
igorpadykov
NXP Employee
NXP Employee
0 项奖励

1,566 次查看
sourabhdas
Contributor III

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.

0 项奖励

1,566 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Sourabh

suggest to post this on that mail list

~igor

0 项奖励

1,566 次查看
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励