Subject: Re: No /dev/audio?
To: Greywolf <greywolf@starwolf.com>
From: Nathan J. Williams <nathanw@MIT.EDU>
List: port-i386
Date: 02/21/2001 13:46:10
Greywolf <greywolf@starwolf.com> writes:

>     auich0 at pci0 dev 31 function 5: i82801BA (ICH2) AC-97 Audio
>     auich0: interrupting at irq 9
>     auich0: unknown (0xffffffff) codec; headphone, Analog Devices Phat Stereo
>     audio0 at auich0: full duplex, mmap, independent
> 
> 
> Okay, I can do mixer controlling via mixerctl, and I get a nice selection
> of stuff to mute/unmute, enable, disable and tweak, but any accesses
> to (write to) /dev/audio (-> /dev/audio0) yield "Invalid argument".

> Anyone know what's up with this?  It's configured in and seems to have a
> nice set of features.

From a glance at the driver, it only supports 48kHz audio (the only
rate guaranteed to be supported by an ac97 codec). /dev/audio wants to
open at 8kHz. We don't do the sample-rate conversion in software, nor
do we probe the ac97 for it's sample rate flexibility, so /dev/audio
loses.

/dev/sound should be fine, though.

        - Nathan