2969
|
1 |
diff -ur alsa-plugins-1.0.14.orig/oss/pcm_oss.c alsa-plugins-1.0.14/oss/pcm_oss.c
|
|
2 |
--- alsa-plugins-1.0.14.orig/oss/pcm_oss.c 2007-05-31 15:06:51.000000000 +0700
|
|
3 |
+++ alsa-plugins-1.0.14/oss/pcm_oss.c 2007-08-12 00:37:48.119259201 +0700
|
|
4 |
@@ -22,7 +22,11 @@
|
|
5 |
#include <sys/ioctl.h>
|
|
6 |
#include <alsa/asoundlib.h>
|
|
7 |
#include <alsa/pcm_external.h>
|
|
8 |
+#if defined(HAVE_LINUX_SOUNDCARD_H)
|
|
9 |
#include <linux/soundcard.h>
|
|
10 |
+#else
|
|
11 |
+#include <sys/soundcard.h>
|
|
12 |
+#endif
|
|
13 |
|
|
14 |
typedef struct snd_pcm_oss {
|
|
15 |
snd_pcm_ioplug_t io;
|
|
16 |
--- alsa-plugins-1.0.23.orig/oss/ctl_oss.c Mon Sep 20 00:06:53 2010
|
|
17 |
+++ alsa-plugins-1.0.23/oss/ctl_oss.c Mon Sep 20 00:09:55 2010
|
388
|
18 |
@@ -26,7 +26,11 @@
|
|
19 |
#include <sys/ioctl.h>
|
|
20 |
#include <alsa/asoundlib.h>
|
|
21 |
#include <alsa/control_external.h>
|
|
22 |
+#if defined(HAVE_LINUX_SOUNDCARD_H)
|
|
23 |
#include <linux/soundcard.h>
|
|
24 |
+#else
|
|
25 |
+#include <sys/soundcard.h>
|
|
26 |
+#endif
|
|
27 |
|
|
28 |
typedef struct snd_ctl_oss {
|
|
29 |
snd_ctl_ext_t ext;
|
|
30 |
@@ -61,11 +65,17 @@
|
|
31 |
[SOUND_MIXER_DIGITAL1] = "IEC958 Playback Volume",
|
|
32 |
[SOUND_MIXER_DIGITAL2] = "Digital Playback Volume",
|
|
33 |
[SOUND_MIXER_DIGITAL3] = "Digital1 Playback Volume",
|
|
34 |
+#ifdef SOUND_MIXER_PHONEIN
|
|
35 |
[SOUND_MIXER_PHONEIN] = "Phone Playback Volume",
|
|
36 |
+#endif
|
|
37 |
+#ifdef SOUND_MIXER_PHONEOUT
|
|
38 |
[SOUND_MIXER_PHONEOUT] = "Master Mono Playback Volume",
|
|
39 |
+#endif
|
|
40 |
[SOUND_MIXER_VIDEO] = "Video Playback Volume",
|
|
41 |
[SOUND_MIXER_RADIO] = "Radio Playback Volume",
|
|
42 |
+#ifdef SOUND_MIXER_MONITOR
|
|
43 |
[SOUND_MIXER_MONITOR] = "Monitor Playback Volume",
|
|
44 |
+#endif
|
|
45 |
};
|
|
46 |
|
2969
|
47 |
static const char *const rec_devices[SOUND_MIXER_NRDEVICES] = {
|
388
|
48 |
@@ -81,7 +91,9 @@
|
|
49 |
[SOUND_MIXER_DIGITAL1] = "IEC958 Capture Switch",
|
|
50 |
[SOUND_MIXER_DIGITAL2] = "Digital Capture Switch",
|
|
51 |
[SOUND_MIXER_DIGITAL3] = "Digital1 Capture Switch",
|
|
52 |
+#ifdef SOUND_MIXER_PHONEIN
|
|
53 |
[SOUND_MIXER_PHONEIN] = "Phone Capture Switch",
|
|
54 |
+#endif
|
|
55 |
[SOUND_MIXER_VIDEO] = "Video Capture Switch",
|
|
56 |
[SOUND_MIXER_RADIO] = "Radio Capture Switch",
|
|
57 |
};
|
|
58 |
@@ -99,7 +111,9 @@
|
|
59 |
[SOUND_MIXER_DIGITAL1] = "IEC958",
|
|
60 |
[SOUND_MIXER_DIGITAL2] = "Digital",
|
|
61 |
[SOUND_MIXER_DIGITAL3] = "Digital1",
|
|
62 |
+#ifdef SOUND_MIXER_PHONEIN
|
|
63 |
[SOUND_MIXER_PHONEIN] = "Phone",
|
|
64 |
+#endif
|
|
65 |
[SOUND_MIXER_VIDEO] = "Video",
|
|
66 |
[SOUND_MIXER_RADIO] = "Radio",
|
|
67 |
};
|