blob: 507792d82e005add48343032938e11f902eb8bdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-af,v 1.2 1998/08/07 10:36:09 agc Exp $
--- snd.orig/snd-clm.c Thu Feb 12 15:37:13 1998
+++ snd-clm.c Sun Feb 22 02:20:40 1998
@@ -753,7 +753,11 @@
{
/* turn off inputs (they create an unbelievable amount of noise) and maximize outputs */
int fd,amp,devmask;
+#ifdef __NetBSD__
+ fd = open("/dev/audio",O_WRONLY,0);
+#else /* !__NetBSD__ */
fd = open("/dev/dsp",O_WRONLY,0);
+#endif /* __NetBSD__ */
if (fd == -1) return;
amp = 0;
ioctl(fd,SOUND_MIXER_READ_DEVMASK,&devmask);
|