Create a new module for the synthesized speaker(4).

XXX Device module autoload (invoked when the /dev/speaker is opened, and
XXX no driver exists) will not find this module.  On i386 and amd64, the
XXX autoload will find the spkr module (spkr0 at pcppi0) and that module
XXX will be autoloaded.  For other architectures, either include the
XXX "spkr0 at audio0" in your config file, or manually load this new
XXX spkr_synth module using modload(8).
This commit is contained in:
pgoyette 2016-12-10 00:39:40 +00:00
parent f65fa017b9
commit 21a19d30ca
3 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.101 2016/11/16 00:50:12 pgoyette Exp $
# $NetBSD: mi,v 1.102 2016/12/10 00:39:40 pgoyette Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -314,6 +314,8 @@
./@MODULEDIR@/smbfs/smbfs.kmod base-kernel-modules kmod
./@MODULEDIR@/solaris base-kernel-modules kmod,solaris
./@MODULEDIR@/solaris/solaris.kmod base-kernel-modules kmod,solaris
./@MODULEDIR@/spkr_synth base-kernel-modules kmod
./@MODULEDIR@/spkr_synth/spkr_synth.kmod base-kernel-modules kmod
./@MODULEDIR@/spdmem base-kernel-modules kmod
./@MODULEDIR@/spdmem/spdmem.kmod base-kernel-modules kmod
./@MODULEDIR@/sppp_subr base-kernel-modules kmod

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.185 2016/12/08 23:22:18 nat Exp $
# $NetBSD: Makefile,v 1.186 2016/12/10 00:39:40 pgoyette Exp $
.include <bsd.own.mk>
@ -116,6 +116,7 @@ SUBDIR+= skipjack
SUBDIR+= slcompress
SUBDIR+= smbfs
SUBDIR+= spdmem
SUBDIR+= spkr_synth
SUBDIR+= sppp_subr
SUBDIR+= sysmon
SUBDIR+= sysmon_envsys

View File

@ -0,0 +1,10 @@
# $NetBSD: spkr_synth.ioconf,v 1.1 2016/12/10 00:39:40 pgoyette Exp $
ioconf spkr
include "conf/files"
include "conf/files.audio"
pseudo-root audio*
spkr* at audio?