summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 01:25:22 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 01:25:22 +0000
commitd4c2c3cd3a2b5ad0055f2869a3776c151d227a52 (patch)
treeed0ab02303de5876ac57da13543bdb9cdfab7bb1 /sys
parent8c696ff2dff9007ed6c340d7af7265585f39918f (diff)
Remove the BUS_DMA_NOCACHE flag from all azalia dma mappings.
The fact that this has only just been implemented, and that this hardware is only found on x86 shows that this flag should not be needed for operation of this hardware. It's been here since the initial netbsd commit the code came from. "sounds good to me" jakemsr@, ok kettenis@.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/azalia.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c
index 73fab441f9f..311fe2e0dc7 100644
--- a/sys/dev/pci/azalia.c
+++ b/sys/dev/pci/azalia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.c,v 1.115 2009/01/16 23:12:28 jakemsr Exp $ */
+/* $OpenBSD: azalia.c,v 1.116 2009/02/05 01:25:21 oga Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
@@ -54,9 +54,6 @@
#include <dev/pci/azalia.h>
typedef struct audio_params audio_params_t;
-#ifndef BUS_DMA_NOCACHE
-#define BUS_DMA_NOCACHE 0
-#endif
struct audio_format {
void *driver_data;
@@ -1109,7 +1106,7 @@ azalia_alloc_dmamem(azalia_t *az, size_t size, size_t align, azalia_dma_t *d)
if (nsegs != 1)
goto free;
err = bus_dmamem_map(az->dmat, d->segments, 1, size,
- &d->addr, BUS_DMA_NOWAIT | BUS_DMA_COHERENT | BUS_DMA_NOCACHE);
+ &d->addr, BUS_DMA_NOWAIT | BUS_DMA_COHERENT);
if (err)
goto free;
err = bus_dmamap_create(az->dmat, size, 1, size, 0,