From: Tobin Davis <tdavis@dsl-only.net>
To: alsa-devel@lists.sourceforge.net
Subject: Patch to fix build issues on Mandriva 2006 (2.6.12-12mdk)
Date: Sat, 21 Oct 2006 12:47:48 -0700 [thread overview]
Message-ID: <1161460068.26400.68.camel@razman> (raw)
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]
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:
--
Tobin Davis <tdavis@dsl-only.net>
[-- Attachment #2: build-fix.patch --]
[-- Type: text/x-patch, Size: 1883 bytes --]
--- a/acore/pcm_native.patch Mon Oct 16 21:36:50 2006 +0200
+++ b/acore/pcm_native.patch Sat Oct 21 12:36:41 2006 -0700
@@ -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 <perex@suse.cz>
-@@ -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;
}
--- a/acore/sound.patch Mon Oct 16 21:36:50 2006 +0200
+++ b/acore/sound.patch Sat Oct 21 12:36:41 2006 -0700
@@ -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 <perex@suse.cz>");
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.");
[-- Attachment #3: Type: text/plain, Size: 373 bytes --]
-------------------------------------------------------------------------
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
[-- Attachment #4: Type: text/plain, Size: 161 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
next reply other threads:[~2006-10-21 19:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-21 19:47 Tobin Davis [this message]
2006-10-21 20:42 ` Patch to fix build issues on Mandriva 2006 (2.6.12-12mdk) Lee Revell
2006-10-21 21:13 ` Tobin Davis
2006-10-23 11:01 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1161460068.26400.68.camel@razman \
--to=tdavis@dsl-only.net \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.