summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-19 16:41:54 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-19 16:41:54 +0000
commit14b21506e0019ff20a34f71841a7f5ec8786887e (patch)
treef209f4737d13beb8a4d068cc18e8c4a5ca8f2a23 /media-sound/alsa-driver/files
parentRemove unneeded patch. Thanks to Jason Wever for reporting. (diff)
downloadhistorical-14b21506e0019ff20a34f71841a7f5ec8786887e.tar.gz
historical-14b21506e0019ff20a34f71841a7f5ec8786887e.tar.bz2
historical-14b21506e0019ff20a34f71841a7f5ec8786887e.zip
Add patch that should fix tumbler.c applying (and thus alsa-driver building) on PowerPC, and close bug #162786. Thanks to Marcel Unbehaun for reporting.
Package-Manager: portage-2.1.2
Diffstat (limited to 'media-sound/alsa-driver/files')
-rw-r--r--media-sound/alsa-driver/files/alsa-driver-1.0.14_rc2-tumbler-ppc.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/media-sound/alsa-driver/files/alsa-driver-1.0.14_rc2-tumbler-ppc.patch b/media-sound/alsa-driver/files/alsa-driver-1.0.14_rc2-tumbler-ppc.patch
new file mode 100644
index 000000000000..7fa8d10e8154
--- /dev/null
+++ b/media-sound/alsa-driver/files/alsa-driver-1.0.14_rc2-tumbler-ppc.patch
@@ -0,0 +1,41 @@
+Index: alsa-driver-1.0.14rc2/ppc/tumbler.patch
+===================================================================
+--- alsa-driver-1.0.14rc2.orig/ppc/tumbler.patch
++++ alsa-driver-1.0.14rc2/ppc/tumbler.patch
+@@ -5,7 +5,7 @@
+ /*
+ * PMac Tumbler/Snapper lowlevel functions
+ *
+-@@ -940,7 +941,11 @@
++@@ -940,8 +941,12 @@
+ }
+ }
+
+@@ -14,6 +14,7 @@
+ +#else
+ static struct work_struct device_change;
+ +#endif
++ static struct snd_pmac *device_change_chip;
+
+ static void device_change_handler(void *self)
+ {
+@@ -29,15 +30,16 @@
+ }
+ }
+ #endif /* PMAC_SUPPORT_AUTOMUTE */
+-@@ -1416,7 +1425,11 @@
++@@ -1416,8 +1425,12 @@
+ chip->resume = tumbler_resume;
+ #endif
+
+ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+-+ INIT_TQUEUE(&device_change, device_change_handler, (void *)chip);
+++ INIT_TQUEUE(&device_change, device_change_handler);
+ +#else
+- INIT_WORK(&device_change, device_change_handler, (void *)chip);
++ INIT_WORK(&device_change, device_change_handler);
+ +#endif
++ device_change_chip = chip;
+
+ #ifdef PMAC_SUPPORT_AUTOMUTE
+ if ((mix->headphone_irq >=0 || mix->lineout_irq >= 0)