On Wed, Dec 01, 2010 at 08:30:03PM +0100, Jiri B. wrote: > Hi, > > on Lenovo T400 laptop there's internal mic (works on other OS). > > Unfortunatelly I'm stupid or it doesn't work :/ > > I tried: > > * aucat -o /tmp/file.wav > * aucat -C0:1 -o /tmp/file.wav > * aucat -C2:3 -o /tmp/file.wav > * audacity record > > (not really sure why '-CX:X'...) > > It produces just same noise all the time... > > I'm confused, I read FAQ but I don't have any record.source or > input.mic.source. > > jirib > > inputs.dac-0:1=141,141 > inputs.dac-2:3=141,141 > inputs.beep=85 > record.adc-2:3_source=mic2 > record.adc-2:3=240,240 > record.adc-0:1_source=mic > record.adc-0:1=240,240 > outputs.hp_source=dac-0:1 > outputs.hp_boost=off > inputs.mic=252,252 > outputs.mic_dir=input-vr80 > outputs.spkr_source=dac-2:3 > outputs.spkr_eapd=on > inputs.mic2=252,252 > outputs.hp_sense=unplugged > outputs.mic_sense=unplugged > outputs.master=143,143 > outputs.master.mute=off > outputs.master.slaves=dac-0:1,dac-2:3 > record.volume=255,255 > record.volume.mute=off > record.volume.slaves=adc-2:3,adc-0:1
this is one of those stupid codecs that has hardwired connections between ADCs and the mics. Lenovo and Dell use these. stupid vendors. you can do this: $ aucat -l -s default -c 0:1 -C 0:1 -s internal -c 2:3 -C 2:3 that gives you two sub-devices, "default", and "internal". you can then specify which device to use with the AUDIODEVICE environment variable. "default" is the default device if not specified. so, $ aucat -o junk.wav $ aucat -i junk.wav will record from the external mic (record.adc-0:1_source=mic) and play it on the headphones (outputs.hp_source=dac-0:1), while $ AUDIODEVICE=internal aucat -o junk.wav $ AUDIODEVICE=internal aucat -i junk.wav will record from the internal mic (record.adc-2:3_source=mic2) and play it back on the speaker (outputs.spkr_source=dac-2:3). and I know mic2 is the internal speaker because there is a 'mic_sense' control, which means 'mic' is a jack. I'm working on making mic switching automatic when a mic jack is plugged/unplugged, but there are still some issues to be worked out. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org