Subject: Re: VS 4k 7930 audio progress report
To: None <port-vax@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-vax
Date: 02/15/2004 14:09:03
> vs4kaud0 at vsbus0 csr 0x200d0000 vec 304 ipl 15 maskbit 6
> audio0 at vs4kaud0: full duplex

That's encouraging.  Something works at least minimally.

> I suspect i got the /dev entries wrong or something.  I stole a part
> of MAKEDEV script from some other architecture (sparc i believe) and
> created /dev/audio0 (69,128), /dev/audioctl0 (69,192), /dev/mixer0
> (69,16) and /dev/sound0 (69,0).

As I recall you're using a 1.6.something, which IIRC is a pre-MI-majors
system.  If so, you cannot simply copy the major device numbers another
port uses.  Look at /sys/arch/vax/vax/conf.c and check what driver
cdevsw[69] points to - in my system, and in a 1.6.1 source tree I have
access to, it's wscons keyboards.

My VAX cdevsw doesn't include the generic audio devices; neither does
1.6.1's.  If yours doesn't either, you'll have to add it, and in any
case use the major number for it in your /dev entries.  Look up what
the SPARC cdevsw (arch/sparc/sparc/conf.c) has for entry 69 if you want
to see what you need to put there.

If you're on a post-MI-majors system, the above will be nonsense to
some, unknown to me, extent.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B