aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ad1889.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ad1889.c')
-rw-r--r--sound/pci/ad1889.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c
index a208075cdc1e..2aa5a7fdb6e0 100644
--- a/sound/pci/ad1889.c
+++ b/sound/pci/ad1889.c
@@ -34,6 +34,7 @@
34 34
35#include <linux/init.h> 35#include <linux/init.h>
36#include <linux/pci.h> 36#include <linux/pci.h>
37#include <linux/dma-mapping.h>
37#include <linux/slab.h> 38#include <linux/slab.h>
38#include <linux/interrupt.h> 39#include <linux/interrupt.h>
39#include <linux/compiler.h> 40#include <linux/compiler.h>
@@ -909,10 +910,10 @@ snd_ad1889_create(struct snd_card *card,
909 910
910 if ((err = pci_enable_device(pci)) < 0) 911 if ((err = pci_enable_device(pci)) < 0)
911 return err; 912 return err;
912 913
913 /* check PCI availability (32bit DMA) */ 914 /* check PCI availability (32bit DMA) */
914 if (pci_set_dma_mask(pci, 0xffffffff) < 0 || 915 if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 ||
915 pci_set_consistent_dma_mask(pci, 0xffffffff) < 0) { 916 pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) {
916 printk(KERN_ERR PFX "error setting 32-bit DMA mask.\n"); 917 printk(KERN_ERR PFX "error setting 32-bit DMA mask.\n");
917 pci_disable_device(pci); 918 pci_disable_device(pci);
918 return -ENXIO; 919 return -ENXIO;