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

Raymond Yau superquad.vortex2 at gmail.com
Fri Mar 16 00:57:19 CET 2012


2012/3/16, Kevin Hilman <khilman at ti.com>:
> 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
>
> Not sure exactly what you mean by sysdefault, but trying that fails:
>
> $ arecord --vumeter=mono -c 1 -f S16_LE -r 48000 -Dsysdefault /dev/null
> ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM sysdefault
> arecord: main:660: audio open error: No such file or directory
>
> Kevin
>


http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=e6f990e5c9be5cac6f36924d20a75d0f69d27297



 pcm.default cards.pcm.default
+pcm.sysdefault cards.pcm.default
 pcm.front cards.pcm.front



http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=src/conf/cards/HDA-Intel.conf

HDA-Intel.pcm.default


  capture.pcm {


                 # to avoid possible phase inversions with digital mics
                 route_policy copy


More information about the Alsa-devel mailing list