aboutsummaryrefslogtreecommitdiff
path: root/audio/alsa-plugins/files/patch-oss_pcm__oss.c
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-07-26 16:51:15 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-07-26 16:51:15 +0000
commit9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch)
tree9b071a8105704e992946dcd6b801e9fcb7635142 /audio/alsa-plugins/files/patch-oss_pcm__oss.c
parent5a20e7990eb544509174d617d359bf0d4ac64737 (diff)
Notes
Diffstat (limited to 'audio/alsa-plugins/files/patch-oss_pcm__oss.c')
-rw-r--r--audio/alsa-plugins/files/patch-oss_pcm__oss.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/audio/alsa-plugins/files/patch-oss_pcm__oss.c b/audio/alsa-plugins/files/patch-oss_pcm__oss.c
new file mode 100644
index 000000000000..79966ae29fb8
--- /dev/null
+++ b/audio/alsa-plugins/files/patch-oss_pcm__oss.c
@@ -0,0 +1,32 @@
+--- oss/pcm_oss.c.orig 2016-07-26 13:27:23 UTC
++++ oss/pcm_oss.c
+@@ -22,7 +22,11 @@
+ #include <sys/ioctl.h>
+ #include <alsa/asoundlib.h>
+ #include <alsa/pcm_external.h>
++#ifdef __linux__
+ #include <linux/soundcard.h>
++#else
++#include <sys/soundcard.h>
++#endif
+
+ #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
+
+@@ -258,7 +262,7 @@ static int oss_drain(snd_pcm_ioplug_t *i
+ #endif
+
+ if (io->stream == SND_PCM_STREAM_PLAYBACK)
+- ioctl(oss->fd, SNDCTL_DSP_SYNC);
++ ioctl(oss->fd, SNDCTL_DSP_SYNC, NULL);
+ return 0;
+ }
+
+@@ -272,7 +276,7 @@ static int oss_prepare(snd_pcm_ioplug_t
+ fprintf(stderr, "%s()\n", __func__);
+ #endif
+
+- ioctl(oss->fd, SNDCTL_DSP_RESET);
++ ioctl(oss->fd, SNDCTL_DSP_RESET, NULL);
+
+ tmp = io->channels;
+ if (ioctl(oss->fd, SNDCTL_DSP_CHANNELS, &tmp) < 0) {