Alsa drivers 0.9.6 with Linux kernel 2.4.24

Dienadel no at use.this.es
Thu Feb 19 23:58:02 PST 2004


I didn't can compile that alsa version with kernel 2.4.23 and above. I
solved it by upgrading alsa driver to 0.98. with kernel 2.4.25, 0.98 version
compiles ok.

"Cynthia Higginbotham" <cyhiggin at republicofnewhome.org> escribió en el
mensaje news:200402191858.i1JIwjK20113 at nucklevee.home...
> 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