Subject: Re: Soundblaster and macppc
To: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
From: Dave Huang <khym@bga.com>
List: port-macppc
Date: 08/29/2000 16:29:40
On Tue, 29 Aug 2000, Emmanuel Dreyfus wrote:
> And these are my dev audio files:
> crw-rw-rw-  1 root  wheel  42, 128 Aug 22 13:47 /dev/audio  
> crw-rw-rw-  1 root  wheel  42, 192 Aug 22 13:47 /dev/audioctl
> crw-rw-rw-  1 root  wheel  42, 16 Aug 22 13:47 /dev/mixer 
> crw-rw-rw-  1 root  wheel  42, 0 Aug 22 13:47 /dev/sound
> 
> If I run audioctl, or any audio related tool, I get 
> audioctl: /dev/audioctl: Device not configured 

On macppc, the audio driver is at major 48, not 42...

> One more question: is there a tool to get the major number of a driver?

Not that I know of... but hopefully, the MAKEDEV script has the correct
info in it. (cd /dev; sh MAKEDEV audio) should do the right thing... The
macppc MAKEDEV says:

audio*) 
        unit=${i#audio}
        audio=audio$unit
        sound=sound$unit
        mixer=mixer$unit
        major=48
[ ... ]

You could also look at the devsw table in sys/arch/macppc/macppc/conf.c:
        cdev_audio_init(NAUDIO,audio),        /* 48: generic audio I/O */

(42 is the USB generic driver, ugen, BTW).
-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 24 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++