Subject: audioplay: failed to set audio info: Invalid argument
To: None <port-i386@netbsd.org>
From: John Fisher <jdf@rse.com>
List: port-i386
Date: 06/19/2003 16:18:11
Hi,

I hope I am posting this to the right list.  If not, please direct me to the 
correct one.

I have a new IBM Thinkpad A31p laptop and cannot get the sound to work.  The 
device comes up in the dmesg (see below), as a auich0.  Running the command
"audioplay file.wav" gives me the error:
audioplay: failed to set audio info: Invalid argument

I am running NetBSD 1.6T from sources I got May 30th 2003.  Any help would be 
welcomed.

Thanks,
John Fisher

My dmesg:
--------------

NetBSD 1.6T (LAPTOP) #0: Wed Jun 18 19:56:49 EDT 2003
	
root@lap.jdf.net:/usr/local/src/NetBSD/NetBSD-1.6T/thesrc/src/sys/arch/i386/compile/LAPTOP
total memory = 1023 MB
avail memory = 942 MB
using 6144 buffers containing 52480 KB of memory
BIOS32 rev. 0 found at 0xfd7e0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium 4 (686-class), 1998.39 MHz, id 0xf27
cpu0: features bfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features bfebf9ff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebf9ff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
cpu0: L2 cache 512 KB 64b/line 8-way
cpu0: ITLB 4K/4M: 128 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: 16 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: Intel 82845 Host (rev. 0x04)
pchb0: random number generator enabled
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: Intel 82845 AGP (rev. 0x04)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies product 0x4c58 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
uhci0 at pci0 dev 29 function 0: Intel 82801CA/CAM USB Controller (rev. 0x02)
uhci0: interrupting at irq 11
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 82801CA/CAM USB Controller (rev. 0x02)
uhci1: interrupting at irq 9
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 82801CA/CAM USB Controller (rev. 0x02)
uhci2: interrupting at 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
ppb1 at pci0 dev 30 function 0: Intel 82801BAM Hub-to-PCI Bridge (rev. 0x42)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
cbb0 at pci2 dev 0 function 0: Ricoh 5C476 PCI-CardBus bridge (rev. 0xa8)
cbb1 at pci2 dev 0 function 1: Ricoh 5C476 PCI-CardBus bridge (rev. 0xa8)
fwohci0 at pci2 dev 0 function 2: Ricoh 5C552 PCI-CardBus bridge/Firewire 
(rev. 0x00)
fwohci0: interrupting at irq 11
fwohci0: OHCI 1.0, 00:06:1b:00:10:04:60:9a, 400Mb/s, 2048 max_rec, 4 ir_ctx, 4 
it_ctx
wi0 at pci2 dev 2 function 0: Intersil Prism2.5 Wireless Lan
wi0: interrupting at irq 11
wi0: 802.11 address 00:20:e0:8f:ee:07
wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI)
wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.6)
wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
fxp0 at pci2 dev 8 function 0: Intel PRO/100 VE Network Controller, rev 66
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:02:8a:36:31:86
inphy0 at fxp0 phy 1: i82562ET 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0
pcmcia0 at cardslot0
cbb1: interrupting at irq 5
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0
pcmcia1 at cardslot1
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801CAM LPC Interface (rev. 0x02)
pciide0 at pci0 dev 31 function 1: Intel 82801CA IDE Controller (ICH3) (rev. 
0x02)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IC25N080ATMR04-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 76319 MB, 16383 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)
wd1 at pciide0 channel 0 drive 1: <IC25N040ATCS05-0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 38154 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA 
data transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA 
data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-STCD-RW/DVD DRIVE GCC-4240N, , 0211> cdrom 
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA 
data transfers)
Intel 82801CA/CAM SMBus Controller (SMBus serial bus, revision 0x02) at pci0 
dev 31 function 3 not configured
auich0 at pci0 dev 31 function 5: i82801CA (ICH3) AC-97 Audio
auich0: interrupting at irq 5
auich0: Analog Devices AD1881A codec; headphone, Analog Devices Phat Stereo
auich0: variable rate audio
audio0 at auich0: full duplex, mmap, independent
Intel 82801CA/CAM Modem (modem communications, revision 0x02) at pci0 dev 31 
function 6 not configured
isa0 at pcib0
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
lpt2 at isa0 port 0x3bc-0x3bf irq : polled
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
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
auich0: measured ac97 link rate at 48000 Hz
Kernelized RAIDframe activated
fw0 at fwohci0: 00:06:1b:00:10:04:60:9a:0a:02:ff:ff:f0:01:00:00
wd1: no disk label
wd1: no disk label
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)
wd1: no disk label