aboutsummaryrefslogtreecommitdiff
path: root/audio/oss/files
diff options
context:
space:
mode:
Diffstat (limited to 'audio/oss/files')
-rw-r--r--audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c15
-rw-r--r--audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c18
2 files changed, 12 insertions, 21 deletions
diff --git a/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c
index 72a2c7d98168..50177823fc3f 100644
--- a/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c
+++ b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c
@@ -1,6 +1,6 @@
---- kernel/OS/FreeBSD/os_freebsd.c.orig 2007-11-12 15:40:51.000000000 -0500
-+++ kernel/OS/FreeBSD/os_freebsd.c 2007-11-12 15:42:12.000000000 -0500
-@@ -28,6 +28,7 @@
+--- kernel/OS/FreeBSD/os_freebsd.c.orig 2008-01-04 17:47:28.000000000 -0500
++++ kernel/OS/FreeBSD/os_freebsd.c 2008-01-04 17:47:30.000000000 -0500
+@@ -21,6 +21,7 @@
#include <sys/proc.h>
#include <sys/sx.h>
#include <sys/mman.h>
@@ -8,12 +8,3 @@
#include <fs/devfs/devfs.h>
#include <sys/poll.h>
-@@ -153,7 +154,7 @@
- return 0;
-
- wq->flags = 0;
-- flag = msleep (wq, *mutex, PRIBIO | PCATCH, "oss", ticks);
-+ flag = msleep_spin (wq, *mutex, "oss", ticks);
-
- if (flag == EWOULDBLOCK) /* Timeout */
- {
diff --git a/audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c b/audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c
index 5f566a22d772..812441bf4df9 100644
--- a/audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c
+++ b/audio/oss/files/patch-setup-FreeBSD-oss-build-osscore.c
@@ -1,19 +1,19 @@
---- setup/FreeBSD/oss/build/osscore.c.orig 2007-12-11 15:01:24.000000000 -0500
-+++ setup/FreeBSD/oss/build/osscore.c 2007-12-11 15:06:33.000000000 -0500
-@@ -163,9 +163,13 @@
+--- setup/FreeBSD/oss/build/osscore.c.orig 2008-01-04 17:53:49.000000000 -0500
++++ setup/FreeBSD/oss/build/osscore.c 2008-01-04 17:55:26.000000000 -0500
+@@ -163,12 +163,12 @@
return -EIO;
}
- intr->irq == bus_setup_intr (osdev->dip, intr->irqres,
-- INTR_TYPE_AV | INTR_MPSAFE, ossintr, intr,
-- &(intr->cookie));
+- INTR_TYPE_AV | INTR_MPSAFE,
+ intr->irq = bus_setup_intr (osdev->dip, intr->irqres,
+ INTR_TYPE_AV | INTR_MPSAFE,
-+#if __FreeBSD_version >= 700031
+ #if __FreeBSD_version >= 700031
+- NULL,
+ NULL,
-+#endif
-+ ossintr, intr,
-+ &(intr->cookie));
+ #endif
+- ossintr, intr, &(intr->cookie));
++ ossintr, intr, &(intr->cookie));
nintrs++;