summaryrefslogtreecommitdiffstats
path: root/sys/modules/sound/driver
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2004-10-25 10:29:57 +0000
committeryongari <yongari@FreeBSD.org>2004-10-25 10:29:57 +0000
commit4feceb845b7fb3f7aa4b129ace24799cd41d7683 (patch)
tree2cf469b09ffa3ed32f8b7ef453aaa1c5ae65ff00 /sys/modules/sound/driver
parent0e87ab8bc6e542c845f82c2bb526208587b200ad (diff)
downloadFreeBSD-src-4feceb845b7fb3f7aa4b129ace24799cd41d7683.zip
FreeBSD-src-4feceb845b7fb3f7aa4b129ace24799cd41d7683.tar.gz
Device driver for onboard CS4231 audio controller which is found
on UltraSPARC workstations. The driver is based on OpenBSD's SBus cs4231 driver and heavily modified to incorporate into sound(4) infrastructure. Due to the lack of APCDMA documentation, the DMA code of SBus cs4231 came from OpenBSD's driver. The driver runs without Giant lock and supports both SBus and EBus based CS4231 audio controller. Special thanks to marius for providing feedbacks during the driver writing. His feedback made it possible to write hiccup free playback code under high system loads. Approved by: jake (mentor) Reviewed by: marius (initial version) Tested by: marius, kwm, Julian C. Dunn(jdunn AT opentrend DOT net)
Diffstat (limited to 'sys/modules/sound/driver')
-rw-r--r--sys/modules/sound/driver/Makefile4
-rw-r--r--sys/modules/sound/driver/audiocs/Makefile10
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/modules/sound/driver/Makefile b/sys/modules/sound/driver/Makefile
index 2994097..c863d7c 100644
--- a/sys/modules/sound/driver/Makefile
+++ b/sys/modules/sound/driver/Makefile
@@ -1,8 +1,12 @@
# $FreeBSD$
+.if ${MACHINE_ARCH} == "sparc64"
+SUBDIR = audiocs
+.else
SUBDIR = als4000 ad1816 cmi cs4281 csa ds1 emu10k1 es137x ess
SUBDIR += fm801 ich maestro maestro3 mss neomagic sb16 sb8 sbc solo
SUBDIR += t4dwave via8233 via82c686 vibes
SUBDIR += driver uaudio
+.endif
.include <bsd.subdir.mk>
diff --git a/sys/modules/sound/driver/audiocs/Makefile b/sys/modules/sound/driver/audiocs/Makefile
new file mode 100644
index 0000000..ff67554
--- /dev/null
+++ b/sys/modules/sound/driver/audiocs/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/sound/sbus
+
+KMOD= snd_audiocs
+SRCS= device_if.h bus_if.h ofw_bus_if.h
+SRCS+= channel_if.h feeder_if.h mixer_if.h
+SRCS+= cs4231.c
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud