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.

How to enable Headset MIC on OMAP5 uevm

This is a quick question. Anyone knows what are the correct mixer settings to enable the headset MIC on OMAP5 uevm with latest  OMAP5 GLSDK  6.01.00.01 ?

The OMAP5 GLSDK Developer Guide only talks about running aplay via headset.

Thanks,

    Enric

  • Some people asked privately if I followed the instructions available in the OMAP5 GLSDK Developer Guide and I did the amixer commands. The answer is yes, I did the amixer commands and I'm able to play wav files without problems, the only problem I've is I can't record sound.

  • Hello Enric,

    You can run the amixer command on your target board to see all the simple mixer controls you can change/play with in a similar manner as described in the glsdk software developers guide.

    Have you tried enabling the mixer capture:
    target# amixer cset -c 0 name='Sidetone Mixer Capture' 1

    or in a similar manner to enable the 'Voice Capture Mixer Capture'

    For the headset microphone you could try changing  the commands described in the GLSDK Developer Guide

    target # amixer sset -c 1 'Analog Left',0 'Aux/FM Left' to amixer sset -c 1 'Analog Left',0 'Headset Mic'

    target # amixer sset -c 1 'Analog Right',0 'Aux/FM Right' to amixer sset -c 1 'Analog Left',0 'Headset Mic'

    And mux them on MUX_ULxx as shown in the GLSDK Release Notes.

    Best Regards,

    Yordan

  • Hi Yordan,

    Thanks for your quick answer. You were right, I missed to enable 'Sidetone Mixer Capture', now is working. Just for information this is the audio routing that I used.

    card=0

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

    amixer cset -c ${card} name='Sidetone Mixer Capture' 1
    amixer sset -c ${card} 'Analog Left',0 'Headset Mic'
    amixer sset -c ${card} 'Analog Right',0 'Headset Mic'

    Best regards,

        Enric

  • Thanks for sharing this info.

    Best Regards,

    Yordan

  • Hi Enric & Yordan,

    Thanks for sharing the detailed audio routing.

    I am also facing similar issue, using 'OMAP5 GLSDK Developer Guide' able to get audio playback working.
    while checking MIC via headset port I am facing difficulty using arecord, while I have used amixer settings similar to your provided inputs.
    I am using 2 pin 3.5 mm jack headset (headphone pin& microphone pin).

    Can you please share your target headset pin configuration ?
    Just want to check only headset port we need to use alternately for both i)headset:aplay & microphone:arecord or some way different?
    Mean while any pointers on Stereo-In Stereo-out ports  if any will be a great help.

    Please advice,


    Thanks
    Shrikant