Patch to fix build issues on Mandriva 2006 (2.6.12-12mdk)
The patch to pcm_native.patch may need more fixing, but it works on my system now. Not sure when latency.h was introduced to the kernel. These patches were needed for me to be able to test build my patches. The HG repository has been broken since before 1.0.13 release (I just never tested it until recently).
Changelog entry follows:
Summary: Fix build issues
This patch fixes build issues on older kernels.
Signed off by:
Signature · 1 line
Tobin Davis <[email protected]>
acore/pcm_native.patch +15 -3
@@ -1,11 +1,23 @@ ---- ../alsa-kernel/core/pcm_native.c 2006-10-04 11:55:09.000000000 +0200 -+++ pcm_native.c 2006-10-04 17:01:36.000000000 +0200 +--- ../alsa-kernel/core/pcm_native.c 2006-10-08 09:54:15.000000000 -0700 ++++ pcm_native.c 2006-10-21 12:26:28.000000000 -0700 @@ -1,3 +1,4 @@ +#define __NO_VERSION__ /* * Digital Audio (PCM) abstract layer * Copyright (c) by Jaroslav Kysela <[email protected]> -@@ -363,7 +364,10 @@ static int period_to_usecs(struct snd_pc +@@ -25,7 +26,11 @@ + #include <linux/file.h> + #include <linux/slab.h> + #include <linux/time.h> ++#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 18) + #include <linux/latency.h> ++#else ++#include <latency_compat.h> ++#endif + #include <linux/uio.h> + #include <sound/core.h> + #include <sound/control.h> +@@ -363,7 +368,10 @@ return usecs; }
acore/sound.patch +5 -4
@@ -1,16 +1,17 @@ ---- ../alsa-kernel/core/sound.c 2006-09-29 15:42:47.000000000 +0200 -+++ sound.c 2006-09-29 15:43:57.000000000 +0200 -@@ -41,6 +41,9 @@ +--- ../alsa-kernel/core/sound.c 2006-10-08 09:54:15.000000000 -0700 ++++ sound.c 2006-10-21 12:30:30.000000000 -0700 +@@ -41,6 +41,10 @@ EXPORT_SYMBOL(snd_major); static int cards_limit = 1; +#ifdef CONFIG_DEVFS_FS +static int device_mode = S_IFCHR | S_IRUGO | S_IWUGO; ++static struct snd_minor *mptr; +#endif MODULE_AUTHOR("Jaroslav Kysela <[email protected]>"); MODULE_DESCRIPTION("Advanced Linux Sound Architecture driver for soundcards."); -@@ -49,6 +52,10 @@ +@@ -49,6 +53,10 @@ MODULE_PARM_DESC(major, "Major # for sound driver."); module_param(cards_limit, int, 0444); MODULE_PARM_DESC(cards_limit, "Count of auto-loadable soundcards.");
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 7 lines · Tobin Davis
static int
cards_limit= 1;
+#ifdefCONFIG_DEVFS_FS
+static intdevice_mode=S_IFCHR|S_IRUGO|S_IWUGO;
++static structsnd_minor*mptr;
+#endif
Shouldn't this be wrapped in a version check or something? Devfs has been removed from recent kernels.
Lee
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
I suppose it could, but what's the point? If devfs has been removed in newer kernels, then it won't be defined, right? Adding a kernel wrapper would be inefficient, plus it would be harder to contain vendor kernels that still implement devfs for compatibility.
Tobin
Quoted 14 lines · Lee Revell
Quoted 7 lines · Tobin Davis
static int
cards_limit= 1;
+#ifdefCONFIG_DEVFS_FS
+static intdevice_mode=S_IFCHR|S_IRUGO|S_IWUGO;
++static structsnd_minor*mptr;
+#endifShouldn't this be wrapped in a version check or something? Devfs has been removed from recent kernels.
Lee
Signature · 8 lines
Tobin Davis <[email protected]> ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Sat, 21 Oct 2006 12:47:48 -0700,
Quoted 6 lines · Tobin Davis
The patch to pcm_native.patch may need more fixing, but it works on my system now. Not sure when
latency.hwas introduced to the kernel. These patches were needed for me to be able to test build my patches. The HG repository has been broken since before 1.0.13 release (I just never tested it until recently).
The configure script checks linux/latency.h and create a dummy linux/config.h if not exists. If this doesn't work for you, it means that something wrong ing configure script. Check config.log to see what's wrong there.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642