Subject: azalai audio
To: None <port-amd64@NetBSD.org>
From: pierre-philipp braun <pbraun@nethence.com>
List: port-amd64
Date: 04/13/2007 01:11:44
Quoting Manuel Bouyer (12/04/2007 22:06),
> It looks like it's not finding acpi. This is probably the cause of the azalia
> issues too. It looks like something is wrong on the branch, acpi should be
> enabled in GENERIC for amd64 too.

it's soo weired, there's is an GENERIC_ACPI kernel conf ready to be used 
in the netbsd-4 source I've check out.  However, it's not listed in the 
web frontend,
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/amd64/conf/?only_with_tag=netbsd-4

anyways, I built a kernel with ACPI + MP + GENERIC and everything goes 
fine just like for i386.  Therefore, I'm now keen on trying to fix the 
sound issue (which also occurs on i386) although I'm not really into C 
development.

Note. there are some patches against FreeBSD 6.2 to make the relative 
sound module (snd_hda) work: http://people.freebsd.org/~ariff/lowlatency/
I've tested it successfully on 6.2-RELEASE.

Any help, patch or C teacher (phone + screen -x!) ? ;)
kidding (almost)


Here are some information that may help:

The hardware volume button on laptop seem to react, the mute button is 
activated.  I can't deactivate it (unmute) until I reboot.


# uname -a
NetBSD heg.nethence.com 4.0_BETA2 NetBSD 4.0_BETA2 (HEG) #0: Fri Apr 13 
02:38:12 CEST 2007 
elge@heg.nethence.com:/home/elge/src/sys/arch/amd64/compile/obj/HEG amd64


# audioctl -a
name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16,slinear_be:16*,ulinear_le:16*,ulinear_be:16*,mulaw:8*,alaw:8*,slinear_le:32,slinear_be:32*,ulinear_le:32*,ulinear_be:32*
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=1536
hiwat=42
lowat=32
monitor_gain=0
mode=
play.rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=127
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.errors=0


# dmesg | grep azalia
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 21 (irq 10)
azalia0: host: Intel 82801GB/GR High Definition Audio Controller (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec[0]: Analog Devices AD1981HD (rev. 2.0)
azalia0: codec[0]: High Definition Audio rev. 1.0
azalia0: playback: max channels=2, encodings=1<PCM>
azalia0: playback: PCM 
formats=e007f<24bit,20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
azalia0: recording: max channels=2, encodings=1<PCM>
azalia0: recording: PCM 
formats=6007f<20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
azalia0: codec[1]: 0x11c1/0x3026 (rev. 7.0)
azalia0: codec[1]: High Definition Audio rev. 1.0
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1] has no audio function groups
audio0 at azalia0: full duplex, independent


# dmesg | grep cpu
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz, 1828.85 MHz
cpu0: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu0: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: calibrating local timer
cpu0: apic clock running at 166 MHz
cpu0: 64 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz, 1828.75 MHz
cpu1: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu1: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
cpu1: L2 cache 2 MB 64B/line 8-way
cpu1: CPU 1 running


full dmesg,

NetBSD 4.0_BETA2 (HEG) #0: Fri Apr 13 02:38:12 CEST 2007
         elge@heg.nethence.com:/home/elge/src/sys/arch/amd64/compile/obj/HEG
total memory = 1015 MB
avail memory = 966 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz, 1828.85 MHz
cpu0: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu0: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: calibrating local timer
cpu0: apic clock running at 166 MHz
cpu0: 64 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz, 1828.75 MHz
cpu1: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,B21,MMXX,MMX>
cpu1: features: bffbfbff<FXSR,SSE,SSE2,B27,HTT,LONG,3DNOW>
cpu1: L2 cache 2 MB 64B/line 8-way
ioapic0 at mainbus0 apid 1 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0
ioapic0: remapped to apic 1
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <HPQOEM,SLIC-MPC,00000001>, AslId <HP  ,00000001>
ACPI Error (evgpeblk-0394): Unknown GPE method type: C267 (name not of 
form _Lxx or _Exx) [20060217]
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
mpacpi: could not get bus number, assuming bus 0
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
PNP0A08 [PCI Express/PCI-X Mode-2 Host Bridge] at acpi0 not configured
PNP0C09 [ACPI Embedded Controller] at acpi0 not configured
PNP0A06 [Generic Container Device] at acpi0 not configured
PNP0501 [16550A-compatible COM port] at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0401 [ECP printer port] at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
IFX0102 at acpi0 not configured
PNP0C04 [Math Coprocessor] at acpi0 not configured
PNP0100 [AT Timer] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
PNP0800 [AT-style speaker sound] at acpi0 not configured
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
PNP0303 [IBM Enhanced (101/102-key, PS/2 mouse support)] at acpi0 not 
configured
SYN0112 at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not 
configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not 
configured
HPQ0006 at acpi0 not configured
PNP0C0A [ACPI Control Method Battery] at acpi0 not configured
PNP0C0A [ACPI Control Method Battery] at acpi0 not configured
ACPI0003 [AC Device] at acpi0 not configured
PNP0C0E [ACPI sleep button device] at acpi0 not configured
PNP0C0D [ACPI lid device] at acpi0 not configured
PNP0C14 at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not 
configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C0B [ACPI Fan] at acpi0 not configured
PNP0C0B [ACPI Fan] at acpi0 not configured
PNP0C0B [ACPI Fan] at acpi0 not configured
PNP0C0B [ACPI Fan] at acpi0 not configured
ACPI Object Type 'Thermal' (0x0d) at acpi0 not configured
ACPI Object Type 'Thermal' (0x0d) at acpi0 not configured
ACPI Object Type 'Thermal' (0x0d) at acpi0 not configured
ACPI Object Type 'Thermal' (0x0d) at acpi0 not configured
ACPI Object Type 'Thermal' (0x0d) at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82945GM/PM/GMS Host Bridge (rev. 0x03)
vga0 at pci0 dev 2 function 0: Intel 82945GM/PM/GMS Integrated Graphics 
Device (rev. 0x03)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Intel 82945GM/PM/GMS Integrated Graphics Device (miscellaneous display, 
revision 0x03) at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 21 (irq 10)
azalia0: host: Intel 82801GB/GR High Definition Audio Controller (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
ppb0 at pci0 dev 28 function 0: Intel 82801GB/GR PCI Express Port #1 
(rev. 0x01)
pci1 at ppb0 bus 8
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
Intel PRO/Wireless LAN 3945ABG Mini-PCI Adapter (miscellaneous network, 
revision 0x02) at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 28 function 2: Intel 82801GB/GR PCI Express Port #3 
(rev. 0x01)
pci2 at ppb1 bus 24
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 3: Intel 82801GB/GR PCI Express Port #4 
(rev. 0x01)
pci3 at ppb2 bus 32
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: Intel 82801GB/GR USB UHCI Controller 
(rev. 0x01)
uhci0: interrupting at ioapic0 pin 20 (irq 10)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801GB/GR USB UHCI Controller 
(rev. 0x01)
uhci1: interrupting at ioapic0 pin 21 (irq 11)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801GB/GR USB UHCI Controller 
(rev. 0x01)
uhci2: interrupting at ioapic0 pin 18 (irq 11)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: Intel 82801GB/GR USB UHCI Controller 
(rev. 0x01)
uhci3: interrupting at ioapic0 pin 19 (irq 10)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 82801GB/GR USB EHCI Controller 
(rev. 0x01)
ehci0: interrupting at ioapic0 pin 20 (irq 10)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb3 at pci0 dev 30 function 0: Intel 82801BAM Hub-PCI Bridge (rev. 0xe1)
pci4 at ppb3 bus 2
pci4: i/o space, memory space enabled
Texas Instruments product 0x8039 (CardBus bridge) at pci4 dev 6 function 
0 not configured
fwohci0 at pci4 dev 6 function 1: Texas Instruments product 0x803a (rev. 
0x00)
fwohci0: interrupting at ioapic0 pin 19 (irq 10)
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:02:3f:99:29:91:47:0c
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
Texas Instruments product 0x803b (miscellaneous mass storage) at pci4 
dev 6 function 2 not configured
Texas Instruments product 0x803c (SD Host Controller system) at pci4 dev 
6 function 3 not configured
Texas Instruments product 0x803d (miscellaneous communications) at pci4 
dev 6 function 4 not configured
bge0 at pci4 dev 14 function 0: Broadcom BCM5788 Gigabit Ethernet
bge0: interrupting at ioapic0 pin 16 (irq 11)
bge0: ASIC BCM5705 A3 (0x3003), Ethernet address 00:17:08:41:9a:1c
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM5705 1000BASE-T media interface, rev. 2
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801GBM LPC Interface Bridge (rev. 0x01)
piixide0 at pci0 dev 31 function 2
piixide0: Intel 82801GBM/GHM Serial ATA Controller (ICH7) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
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
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
pcppi0: children must have an explicit unit
midi0 at pcppi0: PC speaker (CPU-intensive output)
sysbeep0 at pcppi0
pcppi0: attached to attimer0
ioapic0: enabling
WARNING: Callback scheduled before sysmon task queue thread present.
fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
fwohci0: phy int
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[0]: Analog Devices AD1981HD (rev. 2.0)
azalia0: codec[0]: High Definition Audio rev. 1.0
azalia0: playback: max channels=2, encodings=1<PCM>
azalia0: playback: PCM 
formats=e007f<24bit,20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
azalia0: recording: max channels=2, encodings=1<PCM>
azalia0: recording: PCM 
formats=6007f<20bit,16bit,48kHz,44.1kHz,32kHz,22.05kHz,16kHz,11.025kHz,8kHz>
azalia0: codec[1]: 0x11c1/0x3026 (rev. 7.0)
azalia0: codec[1]: High Definition Audio rev. 1.0
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1] has no audio function groups
audio0 at azalia0: full duplex, independent
Kernelized RAIDframe activated
uhub5 at uhub4 port 1
uhub5: Standard Microsystems product 0x2503, class 9/0, rev 2.00/0.01, 
addr 2
uhub5: multiple transaction translators
uhub5: 3 ports with 0 removable, self powered
ubt0 at uhub5 port 1 configuration 1 interface 0
ubt0: Broadcom Corp HP Integrated Module, rev 2.00/1.00, addr 3
wd0 at atabus0 drive 0: <FUJITSU MHV2080BH PL>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using 
DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <TSSTcorpCD/DVDW TS-L632D, , HH15> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
ugen0 at uhub5 port 2
ugen0: AuthenTec Fingerprint Sensor, rev 1.10/6.23, addr 4
boot device: wd0
root on wd0f dumps on wd0b
root file system type: ffs
cpu1: CPU 1 running
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)


Thanks

Pierre-Philipp