Add missing patches to have the right path to the dsp device
authorFlorian Fainelli <florian@openwrt.org>
Tue, 2 Dec 2008 16:16:17 +0000 (16:16 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 2 Dec 2008 16:16:17 +0000 (16:16 +0000)
SVN-Revision: 13477

sound/sox/patches/010-dev-sound-dsp.patch [new file with mode: 0644]

diff --git a/sound/sox/patches/010-dev-sound-dsp.patch b/sound/sox/patches/010-dev-sound-dsp.patch
new file mode 100644 (file)
index 0000000..ad70f26
--- /dev/null
@@ -0,0 +1,26 @@
+diff -ruN sox-14.0.1.orig/src/sox.c sox-14.0.1/src/sox.c
+--- sox-14.0.1.orig/src/sox.c  2008-01-28 17:47:19.000000000 -0500
++++ sox-14.0.1/src/sox.c       2008-12-01 05:49:29.000000000 -0500
+@@ -62,6 +62,7 @@
+   #define TIME_FRAC 1e3
+ #endif
++#include <linux/version.h>
+ /* argv[0] options */
+@@ -377,7 +378,13 @@
+   if (sox_find_format("ossdsp", sox_false))
+   {
+     f->filetype = "ossdsp";
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
++    f->filename = xstrdup("/dev/sound/dsp");
++#else
+     f->filename = xstrdup("/dev/dsp");
++#endif
++
+     return;
+   }
+ #endif
+