summaryrefslogtreecommitdiff
path: root/audio/alsa-plugins/files/patch-oss-pcm_oss.c
blob: 98de34bb8d741b7bc4c093ae4ccb189704217282 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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) {