Subject: audio device
To: None <amiga-dev@netbsd.org>
From: Niklas Hallqvist <niklas@appli.se>
List: amiga-dev
Date: 12/07/1994 19:22:05
First, I haven't rebooted my amiga to test  the audio device yet.

However, If you're running -current and want to try Tim's audio device
there are two things to change.  One is that auconfig must *not* be
compiled with -DKERNEL, otherwise sys/types.h won't get included and
no types will be available.  The other is a generic problem with LKMs
in -current which I have described on current-users.  The quick fix is
to try this patch:

===================================================================
RCS file: /home2/CVSROOT/NetBSD/sys/sys/lkm.h,v
retrieving revision 1.1.1.1.2.5
diff -c -r1.1.1.1.2.5 lkm.h
*** 1.1.1.1.2.5	1994/11/29 16:20:59
--- lkm.h	1994/12/07 18:50:37
***************
*** 259,273 ****
  	int	error;							\
  	case LKM_E_LOAD:						\
  		lkmtp->private.lkm_any = (struct lkm_any *)&_module;	\
! 		if (load != nosys && (error = load(lkmtp, cmd)))	\
  			return error;					\
  		break;							\
  	case LKM_E_UNLOAD:						\
! 		if (unload != nosys && (error = unload(lkmtp, cmd)))	\
  			return error;					\
  		break;							\
  	case LKM_E_STAT:						\
! 		if (stat != nosys && (error = stat(lkmtp, cmd)))	\
  			return error;					\
  		break;							\
  	}								\
--- 259,273 ----
  	int	error;							\
  	case LKM_E_LOAD:						\
  		lkmtp->private.lkm_any = (struct lkm_any *)&_module;	\
! 		if (load != nosys && (error = ((int (*)(struct lkm_table *, int))&load)(lkmtp, cmd)))	\
  			return error;					\
  		break;							\
  	case LKM_E_UNLOAD:						\
! 		if (unload != nosys && (error = ((int (*)(struct lkm_table *, int))&unload)(lkmtp, cmd)))	\
  			return error;					\
  		break;							\
  	case LKM_E_STAT:						\
! 		if (stat != nosys && (error = ((int (*)(struct lkm_table *, int))&stat)(lkmtp, cmd)))	\
  			return error;					\
  		break;							\
  	}								\

I hope the patch is clean, it's been pasted into an X-term with a
modem connection to work.  I haven't tried that file transfer protocol
before :-)  Then lkm_audio.c will compile cleanly.

Niklas

Niklas Hallqvist	Phone: +46-(0)31-40 75 00
Applitron Datasystem	Fax:   +46-(0)31-83 39 50
Molndalsvagen 95	Email: niklas@appli.se
S-412 63  GOTEBORG, Sweden