compat_ossaudio module, so others can depend on it.
This commit is contained in:
parent
57d1c37e21
commit
b11cbdbb9d
@ -1,4 +1,4 @@
|
||||
# $NetBSD: lkm.mi,v 1.31 2008/11/12 14:33:11 ad Exp $
|
||||
# $NetBSD: lkm.mi,v 1.32 2008/11/13 10:05:52 ad Exp $
|
||||
#
|
||||
# Note: don't delete entries from here - mark them as "obsolete" instead.
|
||||
#
|
||||
@ -17,6 +17,8 @@
|
||||
./@MODULEDIR@/coda/coda.kmod base-kernel-modules
|
||||
./@MODULEDIR@/coda5 base-kernel-modules
|
||||
./@MODULEDIR@/coda5/coda5.kmod base-kernel-modules
|
||||
./@MODULEDIR@/compat_ossaudio base-kernel-modules
|
||||
./@MODULEDIR@/compat_ossaudio/compat_ossaudio.kmod base-kernel-modules
|
||||
./@MODULEDIR@/dirhash base-obsolete obsolete
|
||||
./@MODULEDIR@/dirhash/dirhash.kmod base-obsolete obsolete
|
||||
./@MODULEDIR@/efs base-kernel-modules
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ossaudio.c,v 1.63 2008/04/28 20:23:45 martin Exp $ */
|
||||
/* $NetBSD: ossaudio.c,v 1.64 2008/11/13 10:05:52 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 2008 The NetBSD Foundation, Inc.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ossaudio.c,v 1.63 2008/04/28 20:23:45 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ossaudio.c,v 1.64 2008/11/13 10:05:52 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
@ -42,10 +42,13 @@ __KERNEL_RCSID(0, "$NetBSD: ossaudio.c,v 1.63 2008/04/28 20:23:45 martin Exp $")
|
||||
#include <sys/midiio.h>
|
||||
#include <sys/kauth.h>
|
||||
#include <sys/syscallargs.h>
|
||||
#include <sys/module.h>
|
||||
|
||||
#include <compat/ossaudio/ossaudio.h>
|
||||
#include <compat/ossaudio/ossaudiovar.h>
|
||||
|
||||
MODULE(MODULE_CLASS_MISC, compat_ossaudio, NULL);
|
||||
|
||||
#ifdef AUDIO_DEBUG
|
||||
#define DPRINTF(x) if (ossdebug) printf x
|
||||
int ossdebug = 0;
|
||||
@ -63,6 +66,18 @@ static int enum_to_mask(struct audiodevinfo *di, int enm);
|
||||
|
||||
static void setblocksize(file_t *, struct audio_info *);
|
||||
|
||||
static int
|
||||
compat_ossaudio_modcmd(modcmd_t cmd, void *arg)
|
||||
{
|
||||
|
||||
switch (cmd) {
|
||||
case MODULE_CMD_INIT:
|
||||
case MODULE_CMD_FINI:
|
||||
return 0;
|
||||
default:
|
||||
return ENOTTY;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
oss_ioctl_audio(struct lwp *l, const struct oss_sys_ioctl_args *uap, register_t *retval)
|
||||
|
10
sys/modules/compat_ossaudio/Makefile
Normal file
10
sys/modules/compat_ossaudio/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
# $NetBSD: Makefile,v 1.1 2008/11/13 10:05:52 ad Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
.PATH: ${S}/compat/ossaudio
|
||||
|
||||
KMOD= compat_ossaudio
|
||||
SRCS= ossaudio.c
|
||||
|
||||
.include <bsd.kmodule.mk>
|
Loading…
Reference in New Issue
Block a user