Add missing patches to have the right path to the dsp device
[openwrt/svn-archive/archive.git] / sound / sox / patches / 010-dev-sound-dsp.patch
1 diff -ruN sox-14.0.1.orig/src/sox.c sox-14.0.1/src/sox.c
2 --- sox-14.0.1.orig/src/sox.c 2008-01-28 17:47:19.000000000 -0500
3 +++ sox-14.0.1/src/sox.c 2008-12-01 05:49:29.000000000 -0500
4 @@ -62,6 +62,7 @@
5 #define TIME_FRAC 1e3
6 #endif
7
8 +#include <linux/version.h>
9
10 /* argv[0] options */
11
12 @@ -377,7 +378,13 @@
13 if (sox_find_format("ossdsp", sox_false))
14 {
15 f->filetype = "ossdsp";
16 +
17 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
18 + f->filename = xstrdup("/dev/sound/dsp");
19 +#else
20 f->filename = xstrdup("/dev/dsp");
21 +#endif
22 +
23 return;
24 }
25 #endif
26