Alsa drivers 0.9.6 with Linux kernel 2.4.24

Cynthia Higginbotham cyhiggin at republicofnewhome.org
Thu Feb 19 11:39:02 PST 2004


Haven't seen this mentioned anywhere, but while working on my LFS partition,
(LFS 5.1-pre1, BLFS 5.0), I found that I had to patch the alsa 0.9.6 drivers 
(specifically include/adriver.h) to get them to compile on the latest stable 
2.4 kernel, 2.4.24.

Patch is as follows:
--------------------------------
--- alsa-driver-0.9.6/include/adriver.h	Thu Jul  3 06:36:16 2003
+++ alsa-driver-0.9.6-patched/include/adriver.h	Tue Feb 17 09:10:28 2004
@@ -122,5 +122,5 @@
 #define need_resched() (current->need_resched)
 #endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 4)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 24)
 #include <linux/fs.h>
 static inline struct proc_dir_entry *PDE(const struct inode *inode)
@@ -198,5 +198,7 @@
 #define IRQ_HANDLED	/*void*/
 #define IRQ_RETVAL(x)	/*void*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 24)
 typedef void irqreturn_t;
+#endif
 #endif /* LINUX_VERSION_CODE < 2.5.68 */



More information about the blfs-support mailing list