Subject: azalai audio
To: None <tech-kern@netbsd.org>
From: pierre-philipp braun <pbraun@nethence.com>
List: tech-kern
Date: 04/13/2007 12:21:13
Dear kernel maintainers,


I've got troubles making sound working on a recent HP Compaq laptop (nc6320).

The azalai driver claims
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1] has no audio function groups

And laptop's hardware mute button is locked on since booting until shutdown/reboot.

I've tryed netbsd-4/i386, netbsd-4/amd64 and HEAD/amd64, same happens.

I'm not a C developer but I guess it's a hard task, watching
src/sys/dev/pci/azalia.c
src/sys/dev/pci/azalia.h
src/sys/dev/pci/azalia_codecs.c
ftp://download.intel.com/standards/hdaudio/pdf/HDAudio_03.pdf

Note. there's a (working, I've tested it successfully) patch for FreeBSD 6.2 
against snd_hda kernel module.  Maybe it's yet integrated into FreeBSD-7.
http://people.freebsd.org/~ariff/HDA/
http://people.freebsd.org/~ariff/lowlatency/soundcard.h

some informations, outputs from HEAD/amd64 (200704110002Z),


full dmesg,

NetBSD 4.99.17 (GENERIC.MP) #0: Wed Apr 11 19:08:21 PDT 2007
 
builds@wb28:/home/builds/ab/HEAD/amd64/200704110002Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC.MP
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,CFLUSH,B20,DS,ACPI,MMX>
cpu0: features: bffbfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2: e3bd<SSE3,MONITOR,DS-CPL,VMX,EST,TM2,xTPR>
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: 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,CFLUSH,B20,DS,ACPI,MMX>
cpu1: features: bffbfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu1: features2: e3bd<SSE3,MONITOR,DS-CPL,VMX,EST,TM2,xTPR>
cpu1: L2 cache 2 MB 64B/line 8-way
ioapic0 at mainbus0 apid 1
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)
agp at pchb0 not configured
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
direct rendering for vga0 unsupported
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
midi0 at pcppi0: PC speaker (CPU-intensive output)
sysbeep0 at pcppi0
pcppi0: attached to attimer0
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
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
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
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)

# 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=8704
hiwat=7
lowat=1
monitor_gain=0
mode=
play.rate=44100
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=8704
play.samples=2232320
play.eof=0
play.pause=0
play.error=1
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=0x4
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

Should I post other informations ?

Thanks
Pierre-Philipp Braun