Subject: auich
To: None <current-users@netbsd.org>
From: Matt Busigin <mblists@amber.amber.org.uk>
List: current-users
Date: 12/20/2001 19:56:29
Hi,
I seem to have a problem with the auich device, which I have noticed other
people in the past have had, with a quick search of the archive:
audioplay: failed to open /dev/audio: Invalid argument
A bit more searching reveals that open() is returning -1, and errno is set
to EINVAL, initially at:
/sys/dev/pci/auich.c, line 550:
/*
* XXX NEED TO DETERMINE WHICH RATES THE CODEC SUPPORTS!
*/
if (p->sample_rate != 48000)
{
printf( "EINVAL auich_set_params 1\n" );
return (EINVAL);
}
I noticed that the message:
http://www.geocrawler.com/archives/3/497/2001/2/0/5252845/
...might be related. Since it's the open() call that's failing... it has
nothing to do with the audio data.
So, my questions are :
1/ What's wrong?
2/ How do I fix it?
Message output - looks fine:
auich0 at pci0 dev 0 function 1: i82440MX AC-97 Audio
auich0: interrupting at irq 11
auich0: Crystal CS4299 codec; headphone, 20 bit DAC, 18 bit ADC,
Spatializer 3D
audio0 at auich0: full duplex, mmap, independent
ls -l /dev/audio* output - also looks fine:
lrwx------ 1 root wheel 6 Nov 29 23:18 /dev/audio -> audio0
crw-rw-rw- 1 root wheel 42, 128 Nov 29 23:18 /dev/audio0
crw-rw-rw- 1 root wheel 42, 129 Nov 29 23:18 /dev/audio1
crw-rw-rw- 1 root wheel 42, 130 Nov 29 23:18 /dev/audio2
crw-rw-rw- 1 root wheel 42, 131 Nov 29 23:18 /dev/audio3
lrwx------ 1 root wheel 9 Nov 29 23:18 /dev/audioctl -> audioctl0
crw-rw-rw- 1 root wheel 42, 192 Nov 29 23:18 /dev/audioctl0
crw-rw-rw- 1 root wheel 42, 193 Nov 29 23:18 /dev/audioctl1
crw-rw-rw- 1 root wheel 42, 194 Nov 29 23:18 /dev/audioctl2
crw-rw-rw- 1 root wheel 42, 195 Nov 29 23:18 /dev/audioctl3