AnsweredAssumed Answered

Audio play(aplay) not working in SGTL5000XNAA3OR2 codec

Question asked by yashavantha shetty on Aug 24, 2015
Latest reply on Aug 26, 2015 by jamesbone
Branched to a new discussion

Hi,

 

We are using a custom board with i.MX6 Solo and we ported SGTL5000 audio driver to it using 3.10.17 yocto release source code.

But the problem is we are not able to play the audio using aplay command. when aplay given sgtl codec hangs and we need to give ctrl+c to come out.

We are using single codec for both audio in and out.

We observed 2 cases.

 

case 1:

----------

After resetting board if we give arecord before aplay it wil record audio and we can play that recorded audio file in some other device. after that if you give aplay as usual will not work

 

case 2:

----------

After resetting board if aplay command is given before arecord it wil hang and after that arecord also does not works.

 

So we think that there is something issue with aplay or audio transmission which is blocking or stopping SGTL audio codec.

Requesting you to assist us in solving this issue.

 

We are using AUDMUX4.

SSI - 2,

Int-port - 2,

Ext-port - 4

 

dtsi

------

    sound {
            compatible = "fsl,imx6q","fsl,imx-audio-sgtl5000";
            model = "imx6-audio-sgtl5000";
            ssi-controller = <&ssi2>;
            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 = <4>;
    };

 

 

Thanks and Regards,

Yashavantha

Outcomes