[alsa-devel] HDA intel, wired headset w/mic, jack mic detect

Kevin Hilman khilman at ti.com
Tue Mar 20 19:14:57 CET 2012


Raymond Yau <superquad.vortex2 at gmail.com> writes:

> 2012/3/10, Kevin Hilman <khilman at ti.com>:
>>
>> Ah, that's a little easier to tinker with for the uninformed like me. :)
>>
>> Using that, it seems that the above registers work on my coded (cs4206)
>> too.  I was able to determine that the built-in mic is ADC2 right
>> channel, and can at least make the built-in mic switch from the right to
>> left (swap channel mode)
>>
>>     sudo hda-verb /dev/snd/hwC0D0 0x11 SET_COEF_INDEX 2
>>     sudo hda-verb /dev/snd/hwC0D0 0x11 SET_PROC_COEF 0x180a
>>
>> or make the right channel go to both HDA channels (mono mode):
>>
>>     sudo hda-verb /dev/snd/hwC0D0 0x11 SET_COEF_INDEX 2
>>     sudo hda-verb /dev/snd/hwC0D0 0x11 SET_PROC_COEF 0x100a
>>
>> However, I still can't figure out where the headset mic is and how to
>> enable it.
>>
>> Here's what I think I know (c.f. alsa-info.sh  output below)
>>
>
> do you mean that you cannot record mono using sysdefault  which use a
> route to copy left channel channel to both if the internal mic is at
> the right channel?
>
> arecord --vumeter=mono -c 1 -f S16_LE -r 48000 -Dsysdefault /dev/null

That is correct.

Using this command, I cannot record mono using the internal mic.

Kevin


More information about the Alsa-devel mailing list