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.

Omap5432-uEVM: GLSDK: 6_04_00_02 : How to get audio playback from Stereo:Line:out port details required

Hello All,

I want to get details for audio playback from Stereo:Line-out port on Omap5-uevm using GLSDK:6_04_00_02  release.

I am doing these amixer settings:

##

amixer cset -c 1 name='Headset Left Playback' 1
amixer cset -c 1 name='Headset Right Playback' 1
amixer cset -c 1 name='Headset Playback Volume' 12
amixer cset -c 1 name='DL1 PDM Switch' 1
amixer cset -c 1 name='Sidetone Mixer Playback' 1
amixer cset -c 1 name='SDT DL Volume' 120
amixer cset -c 1 name='DL1 Mixer Multimedia' 1
amixer cset -c 1 name='DL1 Media Playback Volume' 110
amixer sset -c 1 'Analog Left',0 'Aux/FM Left'
amixer sset -c 1 'Analog Right',0 'Aux/FM Right'
amixer sset -c 1 'Aux FM',0 7
amixer sset -c 1 'AUDUL Media',0 149
amixer sset -c 1 'Capture',0 4
amixer sset -c 1 MUX_UL00,0 AMic0
amixer sset -c 1 MUX_UL01,0 AMic1
amixer sset -c 1 'AMIC UL',0 120

  ##  settings for Line-out

amixer -c 1 sset 'Handsfree Left Playback' 'HF DAC'  
amixer -c 1 sset 'Handsfree Right Playback' 'HF DAC' amixer -c 1 sset AUXL on amixer -c 1 sset AUXR on amixer -c 1 sset Handsfree 24


##

Now arecord works well on Stereo:Line-In, but when I try to get playback using Stereo:Line-out unable to get the audio playback?

Any pointers or references will be a great help.

Meanwhile I get audio fed to Stereo:Line-In, via Stereo:Line-out to verify Line-out port is active.

##

amixer -c 1 sset 'Handsfree Left Playback' 'Line-In amp'  
amixer -c 1 sset 'Handsfree Right Playback' 'Line-In amp'
amixer -c 1 sset AUXL on                             
amixer -c 1 sset AUXR on                             
amixer -c 1 sset Handsfree 24

##

Thanks

Shrikant

  • Hello Shrikant,

    I would like to remind you that to get audio playback ftom Stereo Line-out. You must pass the signal from Stereo out through the external preamplifier.

    Your questions are discussed in the following posts. Please see the links:

    http://e2e.ti.com/support/omap/f/885/t/350673.aspx

    http://e2e.ti.com/support/omap/f/885/t/352567.aspx

    Best regards,

    Yanko

  • Hello Yanko,

    Yes, I have went though our above mentioned discussions,

    w.r.to discussion http://e2e.ti.com/support/omap/f/885/t/352567.aspx

    >The STEREO OUT is:

    >AUXLP, AUXLN (fully differential auxiliary output)
    >AUXRP, AUXRN (fully differential auxiliary output)

    In order to do auxiliary settings I used below commands,

    amixer -c 1 sset AUXL on                             
    amixer -c 1 sset AUXR on

    Does I am missing any amixer settings specific to AUXLP, AUXLN, AUXRP & AUXRN ?
    As I am getting only AUXL & AUXR available for amixer settings.

    To check playback on Stereo Line-Out. I am using these Creative speakers [A35 - M1630].
    http://asia.creative.com/p/speakers/creative-a35
    http://support.creative.com/kb/ShowArticle.aspx?sid=123602

    root@omap5-evm:~# aplay -Dplughw:1,0 test.wav

    Does I am missing anything needed  ?

    Thanks for the response and your continues efforts. !

     

    Thanks

    Shrikant

  • Hello Shrikant,

    The right settings for OMAP5 ABE are:

    If playback is required via headset, please make sure that the following amixer settings are done for the corresponding card (check the card no. by running the command cat /proc/asound/cards, assuming the card 1 is for headset here):

      target #  amixer cset -c 1 name='Headset Left Playback' 1
      target #  amixer cset -c 1 name='Headset Right Playback' 1
      target #  amixer cset -c 1 name='Headset Playback Volume' 12
      target #  amixer cset -c 1 name='DL1 PDM Switch' 1
      target #  amixer cset -c 1 name='Sidetone Mixer Playback' 1
      target #  amixer cset -c 1 name='SDT DL Volume' 120
      target #  amixer cset -c 1 name='DL1 Mixer Multimedia' 1
      target #  amixer cset -c 1 name='DL1 Media Playback Volume' 110
      target #  amixer sset -c 1 'Analog Left',0 'Aux/FM Left'
      target #  amixer sset -c 1 'Analog Right',0 'Aux/FM Right'
      target #  amixer sset -c 1 'Aux FM',0 7
      target #  amixer sset -c 1 'AUDUL Media',0 149
      target #  amixer sset -c 1 'Capture',0 4
      target #  amixer sset -c 1 MUX_UL00,0 AMic0
      target #  amixer sset -c 1 MUX_UL01,0 AMic1
      target #  amixer sset -c 1 'AMIC UL',0 120

    Once these settings are done, one could do playback via headset using aplay by the following command:

      target #  aplay -Dplughw:1,0 <path_to_example_audio>.wav
    
    -c 1  - corresponds to the number of sound card.

    Please try to execute cat /proc/asound/cards and see which number is your OMAP5 soundcard.

    I assume that Line out in your GLSDK is not set.
    Could you apply the following patch in your GLSDK and try to play?
    http://www.spinics.net/lists/arm-kernel/msg346333.html

    http://mailman.alsa-project.org/pipermail/alsa-devel/2011-December/047194.html

    http://lists.infradead.org/pipermail/linux-arm-kernel/2012-January/081651.html



    Best regards,
    Yanko