This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62A-LP: Audio output issue

Part Number: SK-AM62A-LP

Tool/software:

Hello Expert,

How to enable audio output in SK-AM62A. I tried sample audio. But no output.

Connected a 3.5mm audio earphone to the 3.5mm audio jack.

aplay -l  is  =>

root@am62axx-evm:~# aplay -l                   
**** List of PLAYBACK Hardware Devices ****
card 0: AM62AxSKEVM [AM62Ax-SKEVM], device 0: 2b10000.audio-controller-tlv320aic3x-hifi tlv320aic3x-hifi-0 [2b10000.audio-controller-tlv320aic3x-hifi tlv320aic3x-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


checking audio sample =>

root@am62axx-evm:~# aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1398: Channels count non available


speaker test =>
root@am62axx-evm:~# speaker-test -D hw:0,0 -c 2 -t wav

speaker-test 1.2.11

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 16 to 131072
Period size range from 8 to 16384
Periods = 4
was set period_size = 12000
was set buffer_size = 48000
 0 - Front Left
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error

Warm Regards,
Sajan

  • Hi Sajan,

    Are you trying to run on AM62A EVM or custom board? Have you modified the Device tree or any custom changes related to audio?

    Also, can you try to run the below amixer controls first and then give it a try:

    amixer -c 0 cset numid=71 on
    amixer -c 0 cset numid=70 on
    amixer -c 0 cset numid=64 on
    amixer -c 0 cset numid=65 on
    amixer -c 0 cset numid=15 127
    arecord -D hw:0,0 -r 48000 -c 2 -f S16_LE test.wav -d 10
    
    aplay test.wav

    Let me know how it goes.

    Best Regards,

    Suren

  • Hello Suren,

    Using AM62A EVM 

    Have you modified the Device tree or any custom changes related to audio?

    No

    Let me know how it goes.

    Yes, It working

    I think that the problem is related to the command I given to play the audio,

    aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Center.wav


    Used this to command to play but encountered at 
    Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
    aplay: set_params:1398: Channels count non available

    Which are the supported audio extensions in the board. Can I play a .mp3 audio

    Warm Regards,
    Sajan

  • Sajan,

    Glad it is working now. 

    You can use Gstreamer to decode the mp3 file and then play using alsasink which would then get routed to our codec on the EVM.

    Since, the audio is working fine, can I go ahead and close this thread? Feel free to open newer thread for any other issues.

    Best Regards,

    Suren

  • Hello Suren,

    You can use Gstreamer to decode the mp3 file and then play using alsasink which would then get routed to our codec on the EVM.

    Thanks for your response. Can you please give me a sample pipeline. I didn't get the full understanding.

    Warm Regards,
    Sajan


  • Hi Sajan,

    Here is an example pipeline:

    gst-launch-1.0 filesrc location=your_mp3_file.mp3 ! decodebin ! audioconvert ! audioresample ! alsasink

    Hope this helps

    Best Regards,

    Suren