packages/sound/sox/patches/010-dev-sound-dsp.patch
florian 2ccfec33a8 Add missing patches to have the right path to the dsp device
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13477 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-02 16:16:17 +00:00

27 lines
572 B
Diff

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