Subject: kern/18834: auvia doesn't play any sound on -current
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Hitzemann <simon@mommel.csn.tu-chemnitz.de>
List: netbsd-bugs
Date: 10/28/2002 02:42:57
>Number:         18834
>Category:       kern
>Synopsis:       auvia doesn't play any sound on -current
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 27 17:44:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Simon Hitzemann
>Release:        NetBSD 1.6J
>Organization:
	
>Environment:
	
	
System: NetBSD mommel.csn.tu-chemnitz.de 1.6J NetBSD 1.6J (MOMMEL) #0: Fri Oct 25 17:26:39 CEST 2002 root@mommel.csn.tu-chemnitz.de:/usr/src/sys/arch/i386/compile/MOMMEL i386
Architecture: i386
Machine: i386
>Description:
	Trying to play anything using the auvia driver leads to a failure. All programs I tried stopped with the error: /dev/audio: Invalid argument.
	
	Here's a complete dmesg:

NetBSD 1.6J (MOMMEL) #0: Fri Oct 25 17:26:39 CEST 2002
    root@mommel.csn.tu-chemnitz.de:/usr/src/sys/arch/i386/compile/MOMMEL
total memory = 127 MB
avail memory = 111 MB
using 1658 buffers containing 6632 KB of memory
BIOS32 rev. 0 found at 0xfb260
PCI BIOS rev. 2.1 found at 0xfb290
pcibios: config mechanism [1][x], special cycles [1][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfdea0, size 144 bytes (7 entries)
PCI Interrupt Router at 000:07:0 (vendor 0x1106 product 0x0596)
PCI Exclusive IRQs: 9 10 11 12
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon Model 2 (686-class), 801.91 MHz
cpu0: features 183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 183f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 183f9ff<FXSR>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 512 KB 64b/line 2-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 24 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 64 page colors
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: vendor 0x1106 product 0x0391 (rev. 0x02)
agp0 at pchb0: aperture at 0xd0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0x8391 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x1106 product 0x0686 (rev. 0x21)
pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C686A (Apollo KX133) ATA66 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SV0431D>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 4112 MB, 8912 cyl, 15 head, 63 sec, 512 bytes/sect x 8421840 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
wd1 at pciide0 channel 1 drive 0: <WDC AC2850H>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 814 MB, 1654 cyl, 16 head, 63 sec, 512 bytes/sect x 1667232 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 3, DMA mode 1
pciide0: secondary channel interrupting at irq 15
wd1(pciide0:1:0): using PIO mode 3, DMA mode 1 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: vendor 0x1106 product 0x3038 (rev. 0x10)
uhci0: interrupting at irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1106 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 7 function 3: vendor 0x1106 product 0x3038 (rev. 0x10)
uhci1: interrupting at irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viapm0 at pci0 dev 7 function 4
viaenv0 at viapm0
auvia0 at pci0 dev 7 function 5: VIA VT82C686A AC'97 Audio (rev H)
auvia0: interrupting at irq 9
auvia0: Wolfson WM9701A codec; 18 bit DAC, 18 bit ADC, no 3D stereo
audio0 at auvia0: full duplex, independent
ex0 at pci0 dev 9 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at irq 11
ex0: MAC address 00:50:da:37:bb:d7
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ex1 at pci0 dev 11 function 0: 3Com 3c905-TX 10/100 Ethernet (rev. 0x0)
ex1: interrupting at irq 10
ex1: MAC address 00:60:08:55:8e:e2
nsphy0 at ex1 phy 24: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga1 at pci0 dev 12 function 0: vendor 0x5333 product 0x8811 (rev. 0x44)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: 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
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask f565 netmask fd65 ttymask fde7
IPsec: Initialized Security Association Processing.
uhub0: port error, restarting port 1
uhub1: port error, restarting port 1
uhub1: port error, restarting port 2
uhub1: port error, giving up port 2
uhub2 at uhub0 port 2
uhub2: vendor 0x0451 product 0x1446, class 9/0, rev 1.10/1.10, addr 2
uhub2: 4 ports with 4 removable, self powered
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
IP Filter: v3.4.29 initialized.  Default = pass all, Logging = enabled
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)

	I also took a look if the devices are in use of another applocation:
root@mommel:~# fstat /dev/audio /dev/sound /dev/audio0 /dev/sound0
USER     CMD          PID   FD MOUNT       INUM MODE         SZ|DV R/W NAME
root@mommel:~# 

	audioctl and mixerctl seem to work though.

	
	
>How-To-Repeat:

	Install -current kernel and try to use the audio device with audioplay, mpg123, esd, mpg321, mp3blaster or madplay.
	
>Fix:

	Sorry, no clue.
	
>Release-Note:
>Audit-Trail:
>Unformatted: