Raymond Yau superquad.vortex2@gmail.com writes:
2012/3/10, Kevin Hilman khilman@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