aboutsummaryrefslogtreecommitdiff
path: root/audio/alsa-plugins/files/patch-oss-pcm_oss.c
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-20 03:03:56 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-20 03:03:56 +0000
commita28a1142b4467171d6609f3ac9176c4d58c097a2 (patch)
treec7a3e61c5c5da998dd753fb51ff00dff21e0dd68 /audio/alsa-plugins/files/patch-oss-pcm_oss.c
parent9061f8bc2504dc2563d8ed298ed35a5bbf52d8d6 (diff)
downloadports-a28a1142b4467171d6609f3ac9176c4d58c097a2.tar.gz
ports-a28a1142b4467171d6609f3ac9176c4d58c097a2.zip
Notes
Diffstat (limited to 'audio/alsa-plugins/files/patch-oss-pcm_oss.c')
-rw-r--r--audio/alsa-plugins/files/patch-oss-pcm_oss.c29
1 files changed, 29 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..98de34bb8d74
--- /dev/null
+++ b/audio/alsa-plugins/files/patch-oss-pcm_oss.c
@@ -0,0 +1,29 @@
+--- oss/pcm_oss.c.orig 2008-10-29 08:42:13.000000000 -0400
++++ oss/pcm_oss.c
+@@ -22,4 +22,8 @@
+ #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
+@@ -116,7 +120,7 @@ static int oss_drain(snd_pcm_ioplug_t *i
+ snd_pcm_oss_t *oss = io->private_data;
+
+ if (io->stream == SND_PCM_STREAM_PLAYBACK)
+- ioctl(oss->fd, SNDCTL_DSP_SYNC);
++ ioctl(oss->fd, SNDCTL_DSP_SYNC, NULL);
+ return 0;
+ }
+
+@@ -125,7 +129,7 @@ static int oss_prepare(snd_pcm_ioplug_t
+ snd_pcm_oss_t *oss = io->private_data;
+ int tmp;
+
+- 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) {