All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch to fix build issues on Mandriva 2006 (2.6.12-12mdk)
@ 2006-10-21 19:47 Tobin Davis
  2006-10-21 20:42 ` Lee Revell
  2006-10-23 11:01 ` Takashi Iwai
  0 siblings, 2 replies; 4+ messages in thread
From: Tobin Davis @ 2006-10-21 19:47 UTC (permalink / raw)
  To: alsa-devel

[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-23 11:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-21 19:47 Patch to fix build issues on Mandriva 2006 (2.6.12-12mdk) Tobin Davis
2006-10-21 20:42 ` Lee Revell
2006-10-21 21:13   ` Tobin Davis
2006-10-23 11:01 ` Takashi Iwai

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.