On Sat, Apr 25, 2009 at 01:15:33PM +0200, Jan Stary wrote: > Hi all, > > I am doing some trivial sound-recording on my Compaq Armada 110 laptop > (dmesg and mixerctl below). The sound device is > > auvia0 at pci0 dev 7 function 5 "VIA VT82C686 AC97" rev 0x20: irq 9 > audio0 at auvia0
for ac97 devices, the codec is also very important. although the AD1881A looks pretty standard. no jack sense or anything. > and it works without problems. > > Now, the laptop has an internal microphone - that tiny little hole > you have seen on some laptops. It records fine, set up as > > inputs.mic=255 > inputs.mic.mute=off > inputs.mic.preamp=on > inputs.mic.source=mic0 > record.source=mic > > The laptop also has an input for an external mike (the usual small jack, > just next to the headphones output). When you plug in an external mike, > the audio chip is smart enough to record from that one, and no longer > record from the internal mike. (I use Shure SM57 as the external mike, > which I believe is irrelevant.) Recording with the external mike plugged > in works fine too, EXCEPT the signal level from the external mike is > much weaker, and I wonder why. maybe there is a separate preamp on the internal mic pin? > Can it be that the (one) audio input the laptop has is meant as an > "universal" audio input for both mic and line-in, expecting a much > stronger signal? maybe ... what does inputs.line* affect? or record.source=line? > For the internal mike, having > > inputs.mic.preamp=off/on > > makes a difference of recording just fine vs. recording a dog barking > two blocks away. With the external mike, it makes a difference of > barely audible recording vs. fine recording. With headphones on, > you can hear the signal strength drop when you plug in the external > mike. does changing inputs.mic.source have any effect? > Thanks > > Jan > > > OpenBSD 4.4-stable (GENERIC) #0: Sun Mar 8 18:49:45 CET 2009 > r...@armada.stare.cz:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: Intel Pentium III ("GenuineIntel" 686-class, 128KB L2 cache) 847 MHz > cpu0: > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE > real mem = 259551232 (247MB) > avail mem = 242520064 (231MB) > User Kernel Config > UKC> disable acpi > 429 acpi0 disabled > UKC> enable apm > 330 apm0 enabled > UKC> quit > Continuing... > mainbus0 at root > bios0 at mainbus0: AT/286+ BIOS, date 08/20/01, BIOS32 rev. 0 @ 0xfd720, > SMBIOS rev. 2.3 @ 0xe9f90 (17 entries) > bios0: vendor Phoenix Technologies LTD version "0F08" date 08/20/2001 > bios0: Compaq 110 series > apm0 at bios0: Power Management spec V1.2 > apm0: AC on, battery charge unknown > acpi at bios0 function 0x0 not configured > pcibios0 at bios0: rev 2.1 @ 0xfd720/0x8e0 > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf70/112 (5 entries) > pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A ISA" rev 0x00) > pcibios0: PCI bus #2 is the last bus > bios0: ROM list: 0xc0000/0xc000 0xcc000/0x1800 > cpu0 at mainbus0 > pci0 at mainbus0 bus 0: configuration mode 1 (no bios) > pchb0 at pci0 dev 0 function 0 "VIA VT8601 PCI" rev 0x05 > ppb0 at pci0 dev 1 function 0 "VIA VT82C601 AGP" rev 0x00 > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 "Trident CyberBlade i1 AGP" rev 0x6a > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > agp0 at vga1: v2, aperture at 0xf8000000, size 0x10000000 > drm at vga1 unsupported > pcib0 at pci0 dev 7 function 0 "VIA VT82C686 ISA" rev 0x22 > pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, channel > 0 configured to compatibility, channel 1 configured to compatibility > wd0 at pciide0 channel 0 drive 0: <IC25N015ATDA04-0> > wd0: 16-sector PIO, LBA, 14403MB, 29498112 sectors > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 > atapiscsi0 at pciide0 channel 1 drive 0 > scsibus0 at atapiscsi0: 2 targets, initiator 7 > cd0 at scsibus0 targ 0 lun 0: <QSI, CD-ROM SCR-242, CCA1> ATAPI 5/cdrom > removable > cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 > uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 11 > viaenv0 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x30: HWM disabled: > 24-bit timer at 3579545Hz > auvia0 at pci0 dev 7 function 5 "VIA VT82C686 AC97" rev 0x20: irq 9 > ac97: codec id 0x41445348 (Analog Devices AD1881A) > ac97: codec features headphone, Analog Devices Phat Stereo > audio0 at auvia0 > fxp0 at pci0 dev 9 function 0 "Intel 8255x" rev 0x09, i82559S: irq 11, > address 00:d0:59:80:c6:e5 > inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 > "AT&T/Lucent LTMODEM" rev 0x00 at pci0 dev 9 function 1 not configured > cbb0 at pci0 dev 10 function 0 "TI PCI1410 CardBus" rev 0x01: irq 11 > isa0 at pcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo > pckbc0 at isa0 port 0x60/5 > pckbd0 at pckbc0 (kbd slot) > pckbc0: using irq 1 for kbd slot > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pms0 at pckbc0 (aux slot) > pckbc0: using irq 12 for aux slot > wsmouse0 at pms0 mux 0 > pcppi0 at isa0 port 0x61 > midi0 at pcppi0: <PC speaker> > spkr0 at pcppi0 > lpt0 at isa0 port 0x378/4 irq 7 > npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec > usb0 at uhci0: USB revision 1.0 > uhub0 at usb0 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > cardslot0 at cbb0 slot 0 flags 0 > cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20 > pcmcia0 at cardslot0 > biomask ed65 netmask ed65 ttymask fdff > mtrr: Pentium Pro MTRR support > wi0 at pcmcia0 function 0 "Wireless, LAN Adapter, Version 01.02" port > 0xa000/64 > wi0: PRISM2.5 ISL3873 (0x800c), Firmware 1.1.1 (primary), 1.8.4 (station), > address 00:e0:98:a9:65:af > umass0 at uhub0 port 1 configuration 1 interface 0 "Prolific Technology Inc. > Mass Storage Device" rev 2.00/1.00 addr 2 > umass0: using SCSI over Bulk-Only > scsibus1 at umass0: 2 targets, initiator 0 > sd0 at scsibus1 targ 1 lun 0: <ST980815, A, 3.AL> SCSI0 0/direct fixed > sd0: 76319MB, 9729 cyl, 255 head, 63 sec, 512 bytes/sec, 156301488 sec total > softraid0 at root > root on wd0a swap on wd0b dump on wd0b > > outputs.master=231,231 > outputs.master.mute=off > outputs.mono=255 > outputs.mono.mute=on > outputs.mono.source=mixerout > outputs.headphones=255,255 > outputs.headphones.mute=off > inputs.speaker=15 > inputs.speaker.mute=on > inputs.phone=191 > inputs.phone.mute=on > inputs.mic=255 > inputs.mic.mute=off > inputs.mic.preamp=on > inputs.mic.source=mic0 > inputs.line=7,7 > inputs.line.mute=on > inputs.cd=7,7 > inputs.cd.mute=on > inputs.video=191,191 > inputs.video.mute=on > inputs.aux=7,7 > inputs.aux.mute=on > inputs.dac=231,231 > inputs.dac.mute=off > record.source=mic > record.volume=255,255 > record.volume.mute=off > outputs.spatial=off > outputs.spatial.center=0 > outputs.spatial.depth=0 > outputs.extamp=off > -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org