Re: Lenovo T400 - recording with internal mic

Previous thread: SSH connection failure: broken pipe by Alex Popov on Wednesday, December 1, 2010 - 11:59 am. (2 messages)

Next thread: Última Presentación: Taller de Finanzas para NO Financieros, México D.F. by LIc. Maria Robledo on Wednesday, December 1, 2010 - 1:49 pm. (1 message)
From: Jiri B.
Date: Wednesday, December 1, 2010 - 12:30 pm

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

name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=17536
hiwat=2
lowat=1
output_muted=0
monitor_gain=0
mode=
play.rate=44100
play.sample_rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.gain=143
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=1
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=17536
play.errors=0
record.rate=48000
record.sample_rate=48000
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.gain=255
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=9600
record.errors=0

OpenBSD ...
From: Jacob Meuser
Date: Wednesday, December 1, 2010 - 5:35 pm

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.

-- 
jakemsr@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Previous thread: SSH connection failure: broken pipe by Alex Popov on Wednesday, December 1, 2010 - 11:59 am. (2 messages)

Next thread: Última Presentación: Taller de Finanzas para NO Financieros, México D.F. by LIc. Maria Robledo on Wednesday, December 1, 2010 - 1:49 pm. (1 message)