Audio play(aplay) not working in SGTL5000XNAA3OR2 codec

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Audio play(aplay) not working in SGTL5000XNAA3OR2 codec

1,168 Views
yashavanthashet
Contributor V

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

Labels (3)
0 Kudos
2 Replies

476 Views
jamesbone
NXP TechSupport
NXP TechSupport

I can also suggest that you take a look to the WandBoard BSP,  we know that wandboard has a sgtl5000 codec and audio playback works fine in the kernel provided by Yocto.

0 Kudos

476 Views
jamesbone
NXP TechSupport
NXP TechSupport

Hello  YAshavantha,

Can you please try the 3.14 kernel provided by Yocto?

0 Kudos