Update of /cvsroot/alsa/alsa-driver/include In directory sc8-pr-cvs1:/tmp/cvs-serv12850/include
Modified Files: adriver.h Log Message: - fixed the DMA allocation. pci_set_dma_mask() is called together with pci_set_consistent_dma_mask(). also clean up the double check of mask. Index: adriver.h =================================================================== RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v retrieving revision 1.64 retrieving revision 1.65 diff -u -r1.64 -r1.65 --- adriver.h 5 Jan 2004 14:01:21 -0000 1.64 +++ adriver.h 19 Jan 2004 18:38:28 -0000 1.65 @@ -80,7 +80,7 @@ #include <linux/pm.h> #include <asm/page.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 3) -#define pci_set_dma_mask(pci, mask) pci->dma_mask = mask +#define pci_set_dma_mask(pci, mask) (pci->dma_mask = mask, 0) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 7) #define PCI_OLD_SUSPEND @@ -417,7 +417,7 @@ #endif #ifndef CONFIG_HAVE_PCI_CONSISTENT_DMA_MASK -#define pci_set_consistent_dma_mask(p,x) pci_set_dma_mask(p,x) +#define pci_set_consistent_dma_mask(p,x) 0 /* success */ #endif #include "amagic.h" ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog