aboutsummaryrefslogtreecommitdiff
path: root/audio/pd/files/patch-src_s_freebsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pd/files/patch-src_s_freebsd.c')
-rw-r--r--audio/pd/files/patch-src_s_freebsd.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/audio/pd/files/patch-src_s_freebsd.c b/audio/pd/files/patch-src_s_freebsd.c
new file mode 100644
index 000000000000..468fbb2d6903
--- /dev/null
+++ b/audio/pd/files/patch-src_s_freebsd.c
@@ -0,0 +1,30 @@
+--- src/s_freebsd.c.orig Fri May 24 23:12:24 2002
++++ src/s_freebsd.c Fri May 24 23:12:23 2002
+@@ -32,7 +32,7 @@
+ * 1311:forum::für::umläute:2001
+ */
+
+-#include <linux/soundcard.h>
++#include <sys/soundcard.h>
+
+ #if (defined(ALSA01) || defined(ALSA99))
+ #define ALSA
+@@ -865,7 +865,8 @@
+ }
+ else
+ {
+- wantformat = AFMT_S16_NE;
++/* FreeBSD's soundcard.h does not define AFMT_S16_NE */
++ wantformat = AFMT_S16_BE;
+ dev->d_bytespersamp = 2;
+ }
+ param = wantformat;
+@@ -2747,7 +2748,7 @@
+
+ /* use ctrlpanel to change, experiment, channels 1 */
+
+- orig = param = AFMT_S16_NE;
++ orig = param = AFMT_S16_BE;
+ if (ioctl(fd,SNDCTL_DSP_SETFMT,&param) == -1)
+ fprintf(stderr,"RME9652: Could not set DSP format\n");
+ else if( orig != param )