From 2ccfec33a8567c3d1a55b5b4fe63789d402e807b Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 2 Dec 2008 16:16:17 +0000 Subject: [PATCH] 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 --- sound/sox/patches/010-dev-sound-dsp.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sound/sox/patches/010-dev-sound-dsp.patch diff --git a/sound/sox/patches/010-dev-sound-dsp.patch b/sound/sox/patches/010-dev-sound-dsp.patch new file mode 100644 index 000000000..ad70f26d7 --- /dev/null +++ b/sound/sox/patches/010-dev-sound-dsp.patch @@ -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 + + /* 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 + -- 2.11.0