forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
23 lines
764 B
C
23 lines
764 B
C
--- oss/ctl_oss.c.orig 2008-10-29 08:42:13.000000000 -0400
|
|
+++ oss/ctl_oss.c
|
|
@@ -26,7 +26,11 @@
|
|
#include <sys/ioctl.h>
|
|
#include <alsa/asoundlib.h>
|
|
#include <alsa/control_external.h>
|
|
+#ifdef __linux__
|
|
#include <linux/soundcard.h>
|
|
+#else
|
|
+#include <sys/soundcard.h>
|
|
+#endif
|
|
|
|
typedef struct snd_ctl_oss {
|
|
snd_ctl_ext_t ext;
|
|
@@ -52,7 +56,7 @@ static const char *const vol_devices[SOU
|
|
[SOUND_MIXER_CD] = "CD Playback Volume",
|
|
[SOUND_MIXER_IMIX] = "Monitor Mix Playback Volume",
|
|
[SOUND_MIXER_ALTPCM] = "Headphone Playback Volume",
|
|
- [SOUND_MIXER_RECLEV] = "Capture Volume",
|
|
+ [SOUND_MIXER_RECLEV] = "Master Capture Volume",
|
|
[SOUND_MIXER_IGAIN] = "Capture Volume",
|
|
[SOUND_MIXER_OGAIN] = "Playback Volume",
|
|
[SOUND_MIXER_LINE1] = "Aux Playback Volume",
|