On Sun, Mar 7, 2010 at 7:31 PM, Jacob Meuser <jake...@sdf.lonestar.org>wrote:
> hmm. ok. I think I know what the problem is. that change you made to > set outputs.hp_source=mix4 makes sense. did you try that with the diff? > > Tested. No change. > but the real bugger is that you have 'spkr' and 'spkr2'. are there really > two sets of built-in speakers? I guess so, as this would explain why > muting outputs.spkr only diminishes the sound. the problem is that > spkr2 ends up where hp should be (that is, hp should get mix4, the > first stereo pair output, by default). > I can only assume there are two sets. Sound from this model of Macbook is better (louder, more range) than the sound I experienced from a G4 Powerbook. Four little cones would certainly account for that. > > can you build a kernel with AZALIA_DEBUG defined (uncomment it it > azalia.h) and send me the dmesg from that? I need to know how the > widgets are described by the codec. > > The following dmesg includes prior suggested patch to azalia_codec.c and AZALIA_DEBUG defined OpenBSD 4.7 (bsd-build) #0: Sun Mar 7 20:50:01 MST 2010 r...@kramer.my.domain:/tmp/bsd-build cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz ("GenuineIntel" 686-class) 2.20 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR real mem = 3184046080 (3036MB) avail mem = 3092561920 (2949MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @ 0xe0000 (43 entries) bios0: vendor Apple Inc. version "MB31.88Z.008E.B02.0803051832" date 03/05/08 bios0: Apple Inc. MacBook3,1 acpi0 at bios0: rev 2 acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT SSDT SSDT acpi0: wakeup devices ADP1(S3) LID0(S3) ARPT(S3) GIGE(S3) UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3) UHC5(S3) EHC1(S3) EHC2(S3) EC__(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 199MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz ("GenuineIntel" 686-class) 2.20 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 1 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (RP05) acpiprt2 at acpi0: bus 3 (RP06) acpiprt3 at acpi0: bus 4 (PCIB) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpiac0 at acpi0: AC unit online acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PWRB acpibtn2 at acpi0: SLPB acpibat0 at acpi0: BAT0 model "15253732082930497" type 15253732284385612 oem "15253732284452179" acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: LCD_ acpivout1 at acpivideo0: VGA_ acpivout2 at acpivideo0: TV__ bios0: ROM list: 0xc0000/0xee00! cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2200, 2000, 1800, 1600, 1400, 1200, 800 MHz memory map conflict 0xf00f8000/0x1000 memory map conflict 0xfed1c000/0x4000 memory map conflict 0xfffa0000/0x30000 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xc0000000, size 0x10000000 inteldrm0 at vga1: apic 1 int 16 (irq 11) drm0 at inteldrm0 "Intel GM965 Video" rev 0x03 at pci0 dev 2 function 1 not configured uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20 (irq 10) uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 16 (irq 11) ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 21 (irq 9) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: apic 1 int 20 (irq 10) azalia_reset: resetting azalia_reset: reset counter = 4999 azalia_reset: reset counter = 4985 azalia0: host: High Definition Audio rev. 1.0 azalia0: host: 4 output, 4 input, and 0 bidi streams azalia0: found a codec at #0 azalia_init_corb: CORB allocation succeeded. azalia_init_corb: CORBWP=0; size=256 azalia_init_rirb: RIRB allocation succeeded. azalia_init_rirb: RIRBRP=0, size=256 azalia0: codec[0] vid 0x10ec0885, subid 0x00a1106b, rev. 1.3, HDA version 1.0 azalia0: nidstart=1 #functions=1 azalia_codec_init: FTYPE result = 0x00000101 azalia_codec_init: There are 37 widgets in the audio function. encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> inamp: mute=0 size=0 steps=0 offset=0 outamp: mute=0 size=0 steps=0 offset=0 gpio: wake=0 unsol=1 gpis=0 gpos=0 gpios=2 azalia0: dac02 wcap=11<FORMATOV,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> azalia0: dac03 wcap=11<FORMATOV,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> azalia0: dac04 wcap=11<FORMATOV,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> azalia0: dac05 wcap=11<FORMATOV,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> azalia0: dac06 wcap=211<DIGITAL,FORMATOV,STEREO> encodings=1<PCM> PCM formats=1e05e0<32bit,24bit,20bit,16bit,192kHz,96kHz,88.2kHz,48kHz,44.1kHz> azalia0: adc07 wcap=10011b<CONNLIST,FORMATOV,AMPOV,INAMP,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> inamp: mute=1 size=3 steps=46 offset=16 connections=0x24; selected=0x24 azalia0: adc08 wcap=10011b<CONNLIST,FORMATOV,AMPOV,INAMP,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> inamp: mute=1 size=3 steps=46 offset=16 connections=0x23; selected=0x23 azalia0: adc09 wcap=10011b<CONNLIST,FORMATOV,AMPOV,INAMP,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> inamp: mute=1 size=3 steps=46 offset=16 connections=0x22; selected=0x22 azalia0: adc0a wcap=100391<DIGITAL,CONNLIST,UNSOL,FORMATOV,STEREO> encodings=1<PCM> PCM formats=1e0560<32bit,24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> connections=0x1f; selected=0x1f azalia0: mix0b wcap=20010b<CONNLIST,AMPOV,INAMP,STEREO> inamp: mute=1 size=5 steps=31 offset=23 connections=0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x14,0x15,0x16,0x17; selected=0x18 azalia0: mix0c wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 outamp: mute=0 size=3 steps=64 offset=64 connections=0x2,0xb; selected=0x2 azalia0: mix0d wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 outamp: mute=0 size=3 steps=64 offset=64 connections=0x3,0xb; selected=0x3 azalia0: mix0e wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 outamp: mute=0 size=3 steps=64 offset=64 connections=0x4,0xb; selected=0x4 azalia0: mix0f wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 outamp: mute=0 size=3 steps=64 offset=64 connections=0x5,0xb; selected=0x5 azalia0: vendor10 wcap=f00000 azalia0: vendor11 wcap=f00000 azalia0: vendor12 wcap=f00000 azalia0: vendor13 wcap=f00000 azalia0: unknown14 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=373c<VREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE> [04/00] color=unknown device=spkr conn=fixed conntype=unknown location=n/a chassis=internal special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xc azalia0: green15 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=373c<VREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE> [05/00] color=green device=hp conn=jack conntype=combination location=rear chassis=external special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xd azalia0: unknown16 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=3c<INPUT,OUTPUT,HEADPHONE,PRESENCE> [04/01] color=unknown device=spkr conn=fixed conntype=unknown location=n/a chassis=internal special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xe azalia0: unknown17 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=3c<INPUT,OUTPUT,HEADPHONE,PRESENCE> [15/00] color=unknown device=line conn=none conntype=unknown location=n/a chassis=external special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xf azalia0: unknown18 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=373c<VREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE> [01/00] color=unknown device=mic conn=fixed conntype=unknown location=n/a chassis=internal special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xc azalia0: unknown19 wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=373c<VREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE> [15/00] color=unknown device=line conn=none conntype=unknown location=n/a chassis=external special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xc azalia0: blue1a wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=373c<VREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE> [02/00] color=blue device=line-in conn=jack conntype=combination location=rear chassis=external special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xc azalia0: unknown1b wcap=40018f<CONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO> cap=373c<VREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE> [15/00] color=unknown device=line conn=none conntype=unknown location=n/a chassis=external special=none inamp: mute=0 size=39 steps=3 offset=0 outamp: mute=1 size=0 steps=0 offset=0 connections=0xc,0xd,0xe,0xf,0x26; selected=0xc azalia0: unknown1c wcap=400001<STEREO> cap=20<INPUT> [15/00] color=unknown device=line conn=none conntype=unknown location=n/a chassis=external special=none azalia0: unknown1d wcap=400000 cap=20<INPUT> [15/00] color=unknown device=line conn=none conntype=unknown location=n/a chassis=external special=none azalia0: white1e wcap=400300<DIGITAL,CONNLIST> cap=10<OUTPUT> [06/00] color=white device=SPDIF conn=jack conntype=combination location=rear chassis=external special=none connections=0x6; selected=0x6 azalia0: white1f wcap=400200<DIGITAL> cap=20<INPUT> [03/00] color=white device=SPDIF-in conn=jack conntype=combination location=rear chassis=external special=none azalia0: vendor20 wcap=f00040<PROC> azalia0: volume21 wcap=600080<UNSOL> delta=0 steps=32 azalia0: mix22 wcap=20010b<CONNLIST,AMPOV,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 connections=0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x14,0x15,0x16,0x17,0xb; selected=0x18 azalia0: mix23 wcap=20010b<CONNLIST,AMPOV,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 connections=0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x14,0x15,0x16,0x17,0xb; selected=0x18 azalia0: mix24 wcap=20010b<CONNLIST,AMPOV,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 connections=0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x14,0x15,0x16,0x17,0xb; selected=0x18 azalia0: dac25 wcap=11<FORMATOV,STEREO> encodings=1<PCM> PCM formats=e0560<24bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz> azalia0: mix26 wcap=20010f<CONNLIST,AMPOV,OUTAMP,INAMP,STEREO> inamp: mute=1 size=0 steps=0 offset=0 outamp: mute=0 size=3 steps=64 offset=64 connections=0x25,0xb; selected=0x25 azalia_codec_sort_pins: analog out pins: 0x16->0x04 0x15->0x03 0x1a->0x02 azalia_codec_sort_pins: digital out pins: 0x1e->0x06 azalia_codec_sort_pins: analog in pins: 0x18->0x07 0x16->0x07 0x1a->0x07 0x15->0x07 azalia_codec_sort_pins: digital in pins: 0x1f->0xffffffff azalia0: dacgroup[0]: 04 03 02 05 25 azalia0: dacgroup[1]: 06 azalia0: adcgroup[0]: 07 08 09 azalia0: adcgroup[1]: 0a azalia0: RIRB time out azalia0: codecs: Realtek ALC885 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: apic 1 int 16 (irq 255) pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: apic 1 int 16 (irq 255) pci2 at ppb1 bus 2 "Broadcom BCM4321" rev 0x03 at pci2 dev 0 function 0 not configured ppb2 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x03: apic 1 int 17 (irq 255) pci3 at ppb2 bus 3 mskc0 at pci3 dev 0 function 0 "Marvell Yukon 88E8058" rev 0x13, Yukon-2 EC Ultra rev. B0 (0x3): apic 1 int 17 (irq 7) msk0 at mskc0 port A: address 00:1b:63:ad:0b:ee eephy0 at msk0 phy 0: 88E1149 Gigabit PHY, rev. 1 uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16 (irq 11) uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 18 (irq 5) uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 1 int 21 (irq 9) ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 20 (irq 10) usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3 pci4 at ppb3 bus 4 "AT&T/Lucent FW322 1394" rev 0x61 at pci4 dev 3 function 0 not configured ichpcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x03: PM disabled pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRW GSA-S10N, BP10> ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 disabled (no drives) pciide1 at pci0 dev 31 function 2 "Intel 82801HBM SATA" rev 0x03: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide1: using apic 1 int 18 (irq 5) for native-PCI interrupt wd0 at pciide1 channel 0 drive 0: <SAMSUNG HM250JI> wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6 ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x03: apic 1 int 20 (irq 10) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM usb2 at uhci0: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uvideo0 at uhub1 port 4 configuration 1 interface 0 "Apple Computer Bluetooth" rev 2.00/0.0c addr 2 uhidev0 at uhub2 port 1 configuration 1 interface 0 "Apple Computer ADB device" rev 2.00/19.65 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 modifier keys, 6 key codes wskbd0 at ukbd0: console keyboard, using wsdisplay0 uhidev1 at uhub2 port 1 configuration 1 interface 1 "Apple Computer ADB device" rev 2.00/19.65 addr 2 uhidev1: iclass 3/1 ums0 at uhidev1: 5 buttons wsmouse0 at ums0 mux 0 uhidev2 at uhub6 port 1 configuration 1 interface 0 "Apple Computer, Inc. IR Receiver" rev 2.00/0.16 addr 2 uhidev2: iclass 3/0, 38 report ids uhid0 at uhidev2 reportid 36: input=4, output=0, feature=0 uhid1 at uhidev2 reportid 37: input=4, output=0, feature=0 uhid2 at uhidev2 reportid 38: input=4, output=0, feature=0 uhidev3 at uhub6 port 2 configuration 1 interface 0 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.07 addr 3 uhidev3: iclass 3/1 ukbd1 at uhidev3: 8 modifier keys, 5 key codes, country code 33 wskbd1 at ukbd1 mux 1 wskbd1: connecting to wsdisplay0 uhidev4 at uhub6 port 2 configuration 1 interface 1 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.07 addr 3 uhidev4: iclass 3/1, 5 report ids ums1 at uhidev4 reportid 2: 3 buttons wsmouse1 at ums1 mux 0 ums2 at uhidev4 reportid 5 ums2: mouse has no X report uhidev5 at uhub6 port 2 configuration 1 interface 2 "Apple Computer Apple Internal Keyboard / Trackpad" rev 2.00/0.07 addr 3 uhidev5: iclass 3/0 uhid3 at uhidev5: input=1, output=0, feature=0 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root root on wd0a swap on wd0b dump on wd0b uvideo0: loadfirmware error=2!