Subject: Re: kern/33787: Support for the CMedia CMI9880 codec in the Azalia
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Eye of the Beholder <eye.of.the.8eholder@gmail.com>
List: netbsd-bugs
Date: 06/21/2006 21:35:01
The following reply was made to PR kern/33787; it has been noted by GNATS.

From: Eye of the Beholder <eye.of.the.8eholder@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/33787: Support for the CMedia CMI9880 codec in the Azalia
 driver
Date: Thu, 22 Jun 2006 00:09:32 +0300

 On Wed, 21 Jun 2006 15:50:01 +0000 (UTC)
 TAMURA Kent <kent@NetBSD.org> wrote:
 
 >  Do you have "audio0 at azalia0: full duplex, ..." message?  If
 >  so, I think you can have sound by mixer setting.
 >  
 >  Anyway, entire dmesg with AZALIA_DEBUG is helpful.
 >  
 >  -- 
 >  TAMURA Kent <kent_2006 at hauN.org> <kent at NetBSD.org>
 >  
 
 Hello again.
 Thank you for replying so quickly.
 
 I didn't post the entire dmesg because i thought it is very large.
 Anyway, the entire dmesg is the following:
 
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
 NetBSD 3.99.21 (hostname) #2: Wed Jun 21 23:57:33 EEST 2006
 	root@hostname:/usr/obj/usr/src/sys/arch/i386/compile/hostname
 total memory = 1023 MB
 avail memory = 1002 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
 BIOS32 rev. 0 found at 0xf0010
 mainbus0 (root)
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel (686-class), 3033.80 MHz, id 0xf34
 cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
 cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
 cpu0: features2 441d<SSE3,MONITOR,DS-CPL,CID,xTPR>
 cpu0: "Intel(R) Pentium(R) 4 CPU 3.00GHz"
 cpu0: I-cache 12K uOp cache 8-way
 cpu0: L2 cache 1 MB 64B/line 8-way
 cpu0: ITLB 4K/4M: 128 entries
 cpu0: DTLB 4K/4M: 64 entries
 cpu0: enabling thermal monitor 1 ... enabled.
 cpu0: 32 page colors
 acpi0 at mainbus0: Advanced Configuration and Power Interface
 acpi0: using Intel ACPI CA subsystem version 20060217
 acpi0: X/RSDT: OemId <A M I ,OEMXSDT ,02000606>, AslId <MSFT,00000097>
 acpi0: SCI interrupting at int 9
 acpi0: fixed-feature power button present
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 PNP0A08 [PCI Express/PCI-X Mode-2 Host Bridge] at acpi0 not configured
 PNP0C01 [System Board] at acpi0 not configured
 PNP0000 [AT Interrupt Controller] at acpi0 not configured
 PNP0200 [AT DMA Controller] at acpi0 not configured
 attimer0 at acpi0 (PNP0100): AT Timer
 attimer0: io 0x40-0x43 irq 0
 PNP0B00 [AT Real-Time Clock] at acpi0 not configured
 pcppi0 at acpi0 (PNP0800)
 pcppi0: io 0x61
 sysbeep0 at pcppi0
 npx0 at acpi0 (PNP0C04)
 npx0: io 0xf0-0xff irq 13
 npx0: using exception 16
 fdc0 at acpi0 (PNP0700)
 fdc0: io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
 fdc0: expected BUFFER, got 4
 lpt0 at acpi0 (PNP0401)
 lpt0: io 0x378-0x37f,0x778-0x77f irq 7 drq 3
 PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
 PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
 pckbc0 at acpi0 (PNP0303): kbd port
 pckbc0: io 0x60,0x64 irq 1
 PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
 com0 at acpi0 (PNP0501-1)
 com0: io 0x3f8-0x3ff irq 4
 com0: ns16550a, working fifo
 PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
 PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
 PNP0C01 [System Board] at acpi0 not configured
 acpibut0 at acpi0 (PNP0C0C-170): ACPI Power Button
 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
 pcppi0: attached to attimer0
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 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 82925X Host (rev. 0x04)
 ppb0 at pci0 dev 1 function 0: Intel 82925X PCI Express Bridge (rev. 0x04)
 pci1 at ppb0 bus 5
 pci1: i/o space, memory space enabled, rd/line, wr/inv ok
 vga0 at pci1 dev 0 function 0: NVIDIA product 0x00fc (rev. 0xa2)
 wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
 azalia0: interrupting at irq 5
 azalia0: host: 82801FB/FR High Definition Audio Controller (rev. 3)
 azalia0: host: High Definition Audio rev. 1.0
 azalia0: host: 4 output, 4 input, and 0 bidi streams
 azalia_attach: resetting
 azalia_attach: reset counter = 5000
 azalia_attach: reset counter = 4989
 azalia0: found a codec at #0
 ppb1 at pci0 dev 28 function 0: Intel 82801FB/FR PCI Express Port #0 (rev. 0x03)
 pci2 at ppb1 bus 4
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb2 at pci0 dev 28 function 1: Intel 82801FB/FR PCI Express Port #1 (rev. 0x03)
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 Galileo (Marvell) Technology product 0x4362 (ethernet network, revision 0x15) at pci3 dev 0 function 0 not configured
 ppb3 at pci0 dev 28 function 2: Intel 82801FB/FR PCI Express Port #2 (rev. 0x03)
 pci4 at ppb3 bus 2
 pci4: i/o space, memory space enabled, rd/line, wr/inv ok
 Galileo (Marvell) Technology product 0x4362 (ethernet network, revision 0x15) at pci4 dev 0 function 0 not configured
 uhci0 at pci0 dev 29 function 0: Intel 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci0: interrupting at irq 3
 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 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci1: interrupting at irq 5
 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 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci2: interrupting at irq 10
 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 82801FB/FR USB UHCI Controller (rev. 0x03)
 uhci3: interrupting at irq 5
 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 82801FB/FR USB EHCI Controller (rev. 0x03)
 ehci0: interrupting at irq 3
 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
 ppb4 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0xd3)
 pci5 at ppb4 bus 1
 pci5: i/o space, memory space enabled
 Texas Instruments product 0x8025 (Firewire serial bus, interface 0x10, revision 0x01) at pci5 dev 3 function 0 not configured
 iteide0 at pci5 dev 4 function 0
 iteide0: Integrated Technology Express IDE controller (rev. 0x13)
 iteide0: bus-master DMA support present
 iteide0: primary channel wired to native-PCI mode
 iteide0: using irq 3 for native-PCI interrupt
 atabus0 at iteide0 channel 0
 iteide0: secondary channel wired to native-PCI mode
 atabus1 at iteide0 channel 1
 rtk0 at pci5 dev 9 function 0: Realtek 8139 10/100BaseTX
 rtk0: interrupting at irq 11
 rtk0: Ethernet address 00:a0:d2:13:ce:46
 rlphy0 at rtk0 phy 7: Realtek internal PHY
 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 ichlpcib0 at pci0 dev 31 function 0
 ichlpcib0: Intel 82801FB LPC Interface Bridge (rev. 0x03)
 ichlpcib0: TCO (watchdog) timer configured.
 ichlpcib0: No SpeedStep
 piixide0 at pci0 dev 31 function 1
 piixide0: Intel 82801FB IDE Controller (ICH6) (rev. 0x03)
 piixide0: bus-master DMA support present
 piixide0: primary channel configured to compatibility mode
 piixide0: primary channel interrupting at irq 14
 atabus2 at piixide0 channel 0
 piixide0: secondary channel configured to compatibility mode
 piixide0: secondary channel interrupting at irq 15
 atabus3 at piixide0 channel 1
 piixide1 at pci0 dev 31 function 2
 piixide1: Intel 82801FR Serial ATA/Raid Controller (rev. 0x03)
 piixide1: bus-master DMA support present
 piixide1: primary channel configured to native-PCI mode
 piixide1: using irq 5 for native-PCI interrupt
 atabus4 at piixide1 channel 0
 piixide1: secondary channel configured to native-PCI mode
 atabus5 at piixide1 channel 1
 Intel 82801FB/FR SMBus Controller (SMBus serial bus, revision 0x03) at pci0 dev 31 function 3 not configured
 isa0 at ichlpcib0
 timecounter: Timecounter "TSC" frequency 3033818400 Hz quality 800
 timecounter: selected timecounter "TSC" frequency 3033818400 Hz quality 800
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 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: information of codec[0] follows:
 azalia_codec_init_vtbl: vid=434d4980 subid=813d1043
 azalia0: codec[0]: 0x434d/0x4980 (rev. 0.2)
 azalia0: codec[0]: High Definition Audio rev. 0.9
 azalia_codec_init: nidstart=1 #functions=1
 azalia_codec_init: FTYPE result = 0x00000001
 azalia_codec_init: There are 33 widgets in the audio function.
 	encodings=1<PCM>
 	PCM formats=e0540<24bit,20bit,16bit,192kHz,96kHz,48kHz>
 	inamp: mute=0 size=0 steps=0 offset=0
 	outamp: mute=1 size=0 steps=0 offset=0
 azalia0: dac03 wcap=405<POWER,OUTAMP,STEREO>
 	encodings=1<PCM>
 	PCM formats=e0540<24bit,20bit,16bit,192kHz,96kHz,48kHz>
 	outamp: mute=1 size=0 steps=0 offset=0
 azalia0: dac04 wcap=405<POWER,OUTAMP,STEREO>
 	encodings=1<PCM>
 	PCM formats=e0540<24bit,20bit,16bit,192kHz,96kHz,48kHz>
 	outamp: mute=1 size=0 steps=0 offset=0
 azalia0: dac05 wcap=405<POWER,OUTAMP,STEREO>
 	encodings=1<PCM>
 	PCM formats=e0540<24bit,20bit,16bit,192kHz,96kHz,48kHz>
 	outamp: mute=1 size=0 steps=0 offset=0
 azalia0: dac06 wcap=405<POWER,OUTAMP,STEREO>
 	encodings=1<PCM>
 	PCM formats=e0540<24bit,20bit,16bit,192kHz,96kHz,48kHz>
 	outamp: mute=1 size=0 steps=0 offset=0
 azalia0: dac07 wcap=615<POWER,DIGITAL,FORMATOV,OUTAMP,STEREO>
 	encodings=5<AC3,PCM>
 	PCM formats=0
 	outamp: mute=1 size=0 steps=0 offset=0
 azalia0: adc08 wcap=10051b<POWER,CONNLIST,FORMATOV,AMPOV,INAMP,STEREO>
 azalia0: adc08: No PCM support: 0
 	connections=0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x1f,0x20; selected=0xb
 	inamp: mute=1 size=5 steps=30 offset=0
 azalia0: adc09 wcap=10051b<POWER,CONNLIST,FORMATOV,AMPOV,INAMP,STEREO>
 azalia0: adc09: No PCM support: 0
 	connections=0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x1f,0x20; selected=0xb
 	inamp: mute=1 size=5 steps=30 offset=0
 azalia0: adc0a wcap=100791<POWER,DIGITAL,CONNLIST,UNSOL,FORMATOV,STEREO>
 azalia0: adc0a: No PCM support: 0
 	connections=0x13; selected=0x13
 azalia0: green0b wcap=400581<POWER,CONNLIST,UNSOL,STEREO>
 	pin config; device=line-out color=green assoc=1 seq=0 cap=33f<INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x3; selected=0x3
 azalia0: blue0c wcap=400581<POWER,CONNLIST,UNSOL,STEREO>
 	pin config; device=line-in color=blue assoc=0 seq=0 cap=33f<INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x4; selected=0x4
 azalia0: pink0d wcap=400581<POWER,CONNLIST,UNSOL,STEREO>
 	pin config; device=mic color=pink assoc=0 seq=0 cap=33f<INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x5; selected=0x5
 azalia0: black0e wcap=400581<POWER,CONNLIST,UNSOL,STEREO>
 	pin config; device=line-out color=black assoc=1 seq=4 cap=1033f<EAPD,INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x6; selected=0x6
 azalia0: green0f wcap=400581<POWER,CONNLIST,UNSOL,STEREO>
 	pin config; device=headphones color=green assoc=0 seq=0 cap=33f<INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x3,0x4,0x5,0x6; selected=0x3
 azalia0: pink10 wcap=400581<POWER,CONNLIST,UNSOL,STEREO>
 	pin config; device=mic color=pink assoc=0 seq=0 cap=33f<INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x3,0x4,0x5,0x6; selected=0x3
 azalia0: unknown11 wcap=400001<STEREO>
 	pin config; device=cd color=unknown assoc=0 seq=0 cap=63<BALANCE,INPUT,TRIGGER,IMPEDANCE>
 azalia0: unknown12 wcap=400301<DIGITAL,CONNLIST,STEREO>
 	pin config; device=SPDIF-out color=unknown assoc=0 seq=0 cap=10<OUTPUT>
 	connections=0x7; selected=0x7
 azalia0: unknown13 wcap=400281<DIGITAL,UNSOL,STEREO>
 	pin config; device=SPDIF-in color=unknown assoc=0 seq=0 cap=30<INPUT,OUTPUT>
 azalia0: widget14 wcap=f00000
 azalia0: widget15 wcap=f00000
 azalia0: widget16 wcap=f00000
 azalia0: widget17 wcap=f00000
 azalia0: widget18 wcap=f00000
 azalia0: widget19 wcap=f00000
 azalia0: widget1a wcap=f00000
 azalia0: widget1b wcap=f00000
 azalia0: widget1c wcap=f00000
 azalia0: widget1d wcap=f00000
 azalia0: widget1e wcap=f00000
 azalia0: orange1f wcap=400181<CONNLIST,UNSOL,STEREO>
 	pin config; device=line-out color=orange assoc=1 seq=2 cap=33f<INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x3,0x4,0x5,0x6; selected=0x3
 azalia0: gray20 wcap=400181<CONNLIST,UNSOL,STEREO>
 	pin config; device=line-out color=gray assoc=1 seq=6 cap=33f<INPUT,OUTPUT,HEADPHONE,PRESENCE,TRIGGER,IMPEDANCE>
 	connections=0x3,0x4,0x5,0x6; selected=0x3
 azalia0: widget21 wcap=f00000
 azalia0: widget22 wcap=f00000
 azalia0: beep23 wcap=70000c<AMPOV,OUTAMP>
 	outamp: mute=1 size=11 steps=15 offset=15
 generic_codec_find_dac: DAC: nid=0x4 index=4
 generic_codec_find_dac: DAC path: nid=0xc index=12
 generic_codec_add_dacgroup: assoc=0 seq=0 ==> g=0 n=0
 generic_codec_find_dac: DAC: nid=0x7 index=7
 generic_codec_find_dac: DAC path: nid=0x12 index=18
 generic_codec_add_dacgroup: assoc=0 seq=0 ==> g=1 n=0
 generic_codec_find_dac: DAC: nid=0x3 index=3
 generic_codec_find_dac: DAC path: nid=0xb index=11
 generic_codec_add_dacgroup: assoc=1 seq=0 ==> g=2 n=0
 generic_codec_find_dac: DAC: nid=0x3 index=3
 generic_codec_find_dac: DAC path: nid=0x1f index=31
 generic_codec_find_dac: DAC: nid=0x6 index=6
 generic_codec_find_dac: DAC path: nid=0xe index=14
 generic_codec_add_dacgroup: assoc=1 seq=4 ==> g=2 n=1
 generic_codec_find_dac: DAC: nid=0x3 index=3
 generic_codec_find_dac: DAC path: nid=0x20 index=32
 generic_codec_init_dacgroup: find non-connected DACs
 azalia_codec_init: dacgroup[0]: 04
 azalia_codec_init: dacgroup[1]: 07
 azalia_codec_init: dacgroup[2]: 03 06
 azalia_codec_init: dacgroup[3]: 05
 azalia0: invalid PCM format: 0x00000000
 atapibus0 at atabus0: 2 targets
 cd0 at atapibus0 drive 0: <LITE-ON DVD SOHD-167T, , 9S1B> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(iteide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 atapibus1 at atabus2: 2 targets
 cd1 at atapibus1 drive 0: <_NEC DVD_RW ND-4551A, , 1-X3> cdrom removable
 cd1: 32-bit data port
 cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd1(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 uhidev0 at uhub0 port 2 configuration 1 interface 0
 uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/21.00, addr 2, iclass 3/1
 ums0 at uhidev0: 8 buttons and Z dir.
 wsmouse0 at ums0 mux 0
 uhub5 at uhub1 port 2
 uhub5: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2
 uhub5: 2 ports with 2 removable, bus powered
 wd0 at atabus5 drive 0: <WDC WD1200JD-00HBB0>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd0(piixide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 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)