SOURCES: alsa-driver-linux24.patch (NEW) - don't use Linux 2.6-spe...
qboosh
qboosh at pld-linux.org
Sat Jul 30 00:39:38 CEST 2005
Author: qboosh Date: Fri Jul 29 22:39:38 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- don't use Linux 2.6-specific functions on Linux 2.4
---- Files affected:
SOURCES:
alsa-driver-linux24.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/alsa-driver-linux24.patch
diff -u /dev/null SOURCES/alsa-driver-linux24.patch:1.1
--- /dev/null Sat Jul 30 00:39:38 2005
+++ SOURCES/alsa-driver-linux24.patch Sat Jul 30 00:39:32 2005
@@ -0,0 +1,36 @@
+--- alsa-driver-1.0.9a/acore/sound.patch.orig 2005-05-30 20:55:21.000000000 +0200
++++ alsa-driver-1.0.9a/acore/sound.patch 2005-07-30 00:23:59.000000000 +0200
+@@ -26,27 +26,31 @@
+ .open = snd_open
+ };
+
+-@@ -231,7 +241,11 @@
++@@ -231,7 +241,13 @@
+ devfs_mk_cdev(MKDEV(major, minor), S_IFCHR | device_mode, "snd/%s", name);
+ if (card)
+ device = card->dev;
+++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 2)
+ +#ifdef CONFIG_SND_HAVE_CLASS_SIMPLE
+ class_simple_device_add(sound_class, MKDEV(major, minor), device, name);
+ +#else
+ + class_device_create(sound_class, MKDEV(major, minor), device, "%s", name);
+ +#endif
+++#endif
+
+ up(&sound_mutex);
+ return 0;
+-@@ -263,7 +277,11 @@
++@@ -263,7 +277,13 @@
+
+ if (strncmp(mptr->name, "controlC", 8) || card->number >= cards_limit) /* created in sound.c */
+ devfs_remove("snd/%s", mptr->name);
+++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 2)
+ +#ifdef CONFIG_SND_HAVE_CLASS_SIMPLE
+ class_simple_device_remove(MKDEV(major, minor));
+ +#else
+ + class_device_destroy(sound_class, MKDEV(major, minor));
+ +#endif
+++#endif
+
+ list_del(&mptr->list);
+ up(&sound_mutex);
================================================================
More information about the pld-cvs-commit
mailing list