summaryrefslogtreecommitdiffstats
path: root/sys/modules/sound/driver
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2006-07-15 19:36:28 +0000
committernetchild <netchild@FreeBSD.org>2006-07-15 19:36:28 +0000
commit5f00d121ef8158d868ef0c772e02c356e7278d2a (patch)
treed6217a5fec60b1a6defd1d32108540aac9366012 /sys/modules/sound/driver
parentb2700fb097ced2c90b08850b7decaa0362a31731 (diff)
downloadFreeBSD-src-5f00d121ef8158d868ef0c772e02c356e7278d2a.zip
FreeBSD-src-5f00d121ef8158d868ef0c772e02c356e7278d2a.tar.gz
Add snd_emu10kx driver for Creative SoundBlaster Live! and Audigy series
sound cards with optional pseudo-multichannel playback. It's based on snd_emu10k1 sound driver. Single channel version is available from audio/emu10kx port since some time. The two new ALSA header files (GPLed), which contain Audigy 2 ("p16v") and Audigy 2 Value ("p17v") specific interfaces, are latest versions from ALSA Mercurial repository. This is not connected to the build yet. Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
Diffstat (limited to 'sys/modules/sound/driver')
-rw-r--r--sys/modules/sound/driver/emu10kx/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/sys/modules/sound/driver/emu10kx/Makefile b/sys/modules/sound/driver/emu10kx/Makefile
new file mode 100644
index 0000000..f65be35
--- /dev/null
+++ b/sys/modules/sound/driver/emu10kx/Makefile
@@ -0,0 +1,48 @@
+# $FreeBSD$
+.PATH: ${.CURDIR}/../../../../dev/sound/pci \
+ ${.CURDIR}/../../../../gnu/dev/sound/pci
+
+WARNS?= 2 ## because sound is WARNS=2 only
+## WARNS=3 fails on _class.refs in -pcm.c
+## WARNS=4 fails on min/max in sound headers
+## otherwise it should be WARNS=6 clean
+KMOD= snd_emu10kx
+
+SRCS= device_if.h bus_if.h pci_if.h
+SRCS+= isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h
+SRCS+= vnode_if.h opt_emu10kx.h
+# Master, PCM and MIDI devices
+SRCS+= emu10kx.c
+SRCS+= emu10kx-pcm.c
+SRCS+= emu10kx-midi.c
+# de-GPLed Makefiles
+SRCS+= emu10k1-alsa%diked.h
+SRCS+= p16v-alsa%diked.h
+SRCS+= p17v-alsa%diked.h
+
+emu10k1-alsa%diked.h: emu10k1-alsa.h
+ grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
+ | awk -F"[ (]" '/define/ \
+ { print "#ifndef " $$2 ; print ; print "#endif" }' \
+ >${.TARGET}
+p16v-alsa%diked.h: p16v-alsa.h
+ grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
+ | awk -F"[ (]" '/define/ \
+ { print "#ifndef " $$2 ; print ; print "#endif" }' \
+ >${.TARGET}
+p17v-alsa%diked.h: p17v-alsa.h
+ grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
+ | awk -F"[ (]" '/define/ \
+ { print "#ifndef " $$2 ; print ; print "#endif" }' \
+ >${.TARGET}
+
+CLEANFILES+= emu10k1-alsa%diked.h
+CLEANFILES+= p16v-alsa%diked.h
+CLEANFILES+= p17v-alsa%diked.h
+
+.if !defined(KERNBUILDDIR)
+opt_emu10kx.h:
+ echo "#define SND_EMU10KX_MULTICHANNEL" > opt_emu10kx.h
+.endif
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud