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
This commit is contained in:
parent
3ab7791c73
commit
2ccfec33a8
26
sound/sox/patches/010-dev-sound-dsp.patch
Normal file
26
sound/sox/patches/010-dev-sound-dsp.patch
Normal file
@ -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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user