[alsa-cvslog] alsa-driver: Fix build with 2.6.22 or older kernel
Brought to you by:
perex
From: Takashi I. <ti...@su...> - 2007-07-27 17:10:03
|
changeset: 3353:70e9d477b634 tag: tip user: tiwai date: Fri Jul 27 19:09:04 2007 +0200 files: acore/memalloc.inc description: Fix build with 2.6.22 or older kernel Define CONFIG_HAS_DMA for 2.6.22 or older kernels. diff -r f5e06e16a7c3 -r 70e9d477b634 acore/memalloc.inc --- a/acore/memalloc.inc Thu Jul 26 19:12:47 2007 +0200 +++ b/acore/memalloc.inc Fri Jul 27 19:09:04 2007 +0200 @@ -5,6 +5,10 @@ #if defined(CONFIG_MODVERSIONS) && !defined(__GENKSYMS__) && !defined(__DEPEND__) #include "sndversions.h" #endif +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) +#define CONFIG_HAS_DMA #endif #include <linux/pci.h> |