7079622fc8
A patch from Jonathan Perkin via PR 18791
25 lines
683 B
Text
25 lines
683 B
Text
$NetBSD: patch-ad,v 1.7 2002/11/19 13:04:38 salo Exp $
|
|
|
|
--- drivers/drv_sun.c.orig Sun Jan 13 01:58:57 2002
|
|
+++ drivers/drv_sun.c Tue Nov 19 05:22:18 2002
|
|
@@ -79,12 +79,18 @@
|
|
#endif
|
|
|
|
/* Sound device to open */
|
|
-#ifdef SUNOS4
|
|
+#ifndef SOLARIS /* SunOS, NetBSD */
|
|
#define SOUNDDEVICE "/dev/sound"
|
|
-#else /* Solaris, *BSD */
|
|
+#else /* Solaris */
|
|
#define SOUNDDEVICE "/dev/audio"
|
|
#endif
|
|
|
|
+/* Solaris */
|
|
+#ifdef SOLARIS
|
|
+#define AUDIO_ENCODING_SLINEAR AUDIO_ENCODING_LINEAR
|
|
+#define AUDIO_ENCODING_ULINEAR AUDIO_ENCODING_LINEAR8
|
|
+#endif
|
|
+
|
|
/* Compatibility defines, for old *BSD or SunOS systems */
|
|
#ifndef AUDIO_ENCODING_PCM16
|
|
#define AUDIO_ENCODING_PCM16 AUDIO_ENCODING_LINEAR
|