Update of /cvsroot/alsa/alsa-driver/pci/au88x0
In directory sc8-pr-cvs1:/tmp/cvs-serv12850/pci/au88x0

Modified Files:
        au88x0.c 
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: au88x0.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pci/au88x0/au88x0.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- au88x0.c    13 Jan 2004 08:39:14 -0000      1.6
+++ au88x0.c    19 Jan 2004 18:38:28 -0000      1.7
@@ -152,11 +152,11 @@
     // check PCI availability (DMA).
     if ((err = pci_enable_device(pci)) < 0)
         return err;
-    if (!pci_dma_supported(pci, VORTEX_DMA_MASK)) {
+   if (pci_set_dma_mask(pci, VORTEX_DMA_MASK) < 0 ||
+       pci_set_consistent_dma_mask(pci, VORTEX_DMA_MASK) << 0) {
         printk(KERN_ERR "error to set DMA mask\n");
         return -ENXIO;
     }
-    pci_set_dma_mask(pci, VORTEX_DMA_MASK);
 
     chip = snd_magic_kcalloc(vortex_t, 0, GFP_KERNEL);
     if (chip == NULL)



-------------------------------------------------------
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

Reply via email to