aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/au88x0/au88x0.c4
-rw-r--r--sound/pci/au88x0/au88x0.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c
index 7c547859ae00..7d9184f7367a 100644
--- a/sound/pci/au88x0/au88x0.c
+++ b/sound/pci/au88x0/au88x0.c
@@ -20,6 +20,7 @@
20#include <linux/slab.h> 20#include <linux/slab.h>
21#include <linux/interrupt.h> 21#include <linux/interrupt.h>
22#include <linux/moduleparam.h> 22#include <linux/moduleparam.h>
23#include <linux/dma-mapping.h>
23#include <sound/initval.h> 24#include <sound/initval.h>
24 25
25// module parameters (see "Module Parameters") 26// module parameters (see "Module Parameters")
@@ -150,11 +151,10 @@ snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip)
150 // check PCI availability (DMA). 151 // check PCI availability (DMA).
151 if ((err = pci_enable_device(pci)) < 0) 152 if ((err = pci_enable_device(pci)) < 0)
152 return err; 153 return err;
153 if (!pci_dma_supported(pci, VORTEX_DMA_MASK)) { 154 if (pci_set_dma_mask(pci, DMA_32BIT_MASK)) {
154 printk(KERN_ERR "error to set DMA mask\n"); 155 printk(KERN_ERR "error to set DMA mask\n");
155 return -ENXIO; 156 return -ENXIO;
156 } 157 }
157 pci_set_dma_mask(pci, VORTEX_DMA_MASK);
158 158
159 chip = kzalloc(sizeof(*chip), GFP_KERNEL); 159 chip = kzalloc(sizeof(*chip), GFP_KERNEL);
160 if (chip == NULL) 160 if (chip == NULL)
diff --git a/sound/pci/au88x0/au88x0.h b/sound/pci/au88x0/au88x0.h
index 745f995a20dd..c2ad2674bea7 100644
--- a/sound/pci/au88x0/au88x0.h
+++ b/sound/pci/au88x0/au88x0.h
@@ -39,8 +39,6 @@
39#include "au88x0_wt.h" 39#include "au88x0_wt.h"
40#endif 40#endif
41 41
42#define VORTEX_DMA_MASK 0xffffffff
43
44#define hwread(x,y) readl((x)+((y)>>2)) 42#define hwread(x,y) readl((x)+((y)>>2))
45#define hwwrite(x,y,z) writel((z),(x)+((y)>>2)) 43#define hwwrite(x,y,z) writel((z),(x)+((y)>>2))
46 44