summaryrefslogtreecommitdiff
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
parent- Update to 3.11 (diff)
- Update to 1.0.25
- Convert to new options framework - alsa-plugins: - Add option: ARIFF_OSS for FreeBSD-specific patch - Revert ports/165247 per regression in ports/169767 - Unbreak arcam-av and usb_stream plugins - While I'm here, pet portlint by removing ABI version number from LIB_DEPENDS Changes: http://www.alsa-project.org/main/index.php/Changes_v1.0.24_v1.0.25 http://www.alsa-project.org/main/index.php/Changes_v1.0.23_v1.0.24 PR: ports/169841 Submitted by: Jan Beich <jbeich@tormail.org> (maintainer)
Notes
Notes: svn path=/head/; revision=301209
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) {