summaryrefslogtreecommitdiff
path: root/recipes/setmixer/devfs.patch
blob: d2b5c82df86f8bad20237b03db5e7f774159fd5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- setmixer-27DEC94.orig/setmixer.c~devfs
+++ setmixer-27DEC94.orig/setmixer.c
@@ -27,7 +27,7 @@
 #include <sys/ioctl.h>
 #include <sys/soundcard.h>
 
-#define MIXER "/dev/mixer"
+#define MIXER "/dev/sound/mixer"
 
 const char * dname[] = SOUND_DEVICE_NAMES;
     
@@ -65,7 +65,7 @@
     }
 
     if ((mixer_fd = open(MIXER, O_RDWR)) < 0) {
-	fprintf(stderr, "Error opening /dev/mixer.");
+	fprintf(stderr, "Error opening /dev/sound/mixer.");
 	exit(1);
     }
     if (ioctl(mixer_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) {