Update of /cvsroot/alsa/alsa-driver
In directory sc8-pr-cvs1:/tmp/cvs-serv6528
Modified Files:
configure.in
Log Message:
- added a check and a wrapper of pci_set_consistent_dma_mask() for
older kernels.
Index: configure.in
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/configure.in,v
retrieving revision 1.202
retrieving revision 1.203
diff -u -r1.202 -r1.203
--- configure.in 18 Nov 2003 15:51:09 -0000 1.202
+++ configure.in 20 Nov 2003 13:23:27 -0000 1.203
@@ -1066,6 +1066,29 @@
AC_DEFINE(CONFIG_HAVE_PDE)
fi
+dnl Check for pci_consistent_set_dma_mask()
+AC_MSG_CHECKING(for pci_set_consistent_dma_mask)
+pci_consistent_defined="0"
+ac_save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -Wall -I$CONFIG_SND_KERNELDIR/include"
+AC_TRY_COMPILE([
+#define __KERNEL__
+#include "$CONFIG_SND_KERNELDIR/include/linux/config.h"
+#include "$CONFIG_SND_KERNELDIR/include/linux/pci.h"
+],[
+ int (*func)();
+ func = pci_set_consistent_dma_mask;
+],
+ AC_MSG_RESULT("yes");pci_consistent_defined="1",
+ AC_MSG_RESULT("no");pci_consistent_defined="0",
+ AC_MSG_RESULT("unknown");pci_consistent_defined="0"
+)
+CFLAGS=$ac_save_CFLAGS
+CONFIG_HAVE_PCI_CONSISTENT_DMA_MASK=$pci_consistent_defined
+if test "$CONFIG_HAVE_PCI_CONSISTENT_DMA_MASK" = "1"; then
+ AC_DEFINE(CONFIG_HAVE_PCI_CONSISTENT_DMA_MASK)
+fi
+
dnl check only on 2.2 kernel..
if test $kpatchlevel -le 2; then
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog