
1) Apply kern.patch to your kernel sources.
   This makes changes to the files arch/amiga/amiga/cc.c and 
   arch/amiga/amiga/cc.h.
   The changes should be completely compatible with existing
   kernel code which uses the audio hardware.

2) Rebuild kernel and boot with it.  Make sure to put it into
   place ("/netbsd") before running modload.

3) Build the module and load it:

     Make load

   This load the module into your kernel.

4) Make the device files.  For testing you can make it in your 
   current directory:

     MAKEDEV

You're now ready to use the audio device.  There are 6 of them,
aud0 through aud5.  They are all setup as mu-law devices at 8khz
by default.  The devices are:

   aud 0  - stereo device,  channels 0 and 1
   aud 1  - stereo device,  channels 2 and 3
   aud 3  - mono channel 0
   ...
   aud 5  - mono channel 3

No two channels may be opened simultaneously.  To test:

  cat samp.au > aud0
  cc test.c -o autest
  autest

A utility that configures the device has been included:

  cc auconfig.c -o auconfig

This utility can set the encoding format a device recognizes.
The default is mu-law.  The other formats supported are
8-bit signed linear (amiga format) and 8-bit unsigned linear.
Read the top of auconfig.c for more information.

                               Tim N.


