Patch to fix build issues on Mandriva 2006 (2.6.12-12mdk)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
--- 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@xxxxxxx>
-@@ -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@xxxxxxx>");
  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
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux