aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pci/maestro.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/pci/maestro.c')
-rw-r--r--sys/dev/sound/pci/maestro.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sound/pci/maestro.c b/sys/dev/sound/pci/maestro.c
index ed1c9ef1cad6..3caccdb12fe9 100644
--- a/sys/dev/sound/pci/maestro.c
+++ b/sys/dev/sound/pci/maestro.c
@@ -1716,8 +1716,8 @@ dma_malloc(bus_dma_tag_t dmat, u_int32_t sz, bus_addr_t *phys,
if (bus_dmamem_alloc(dmat, &buf, BUS_DMA_NOWAIT, map))
return NULL;
- if (bus_dmamap_load(dmat, *map, buf, sz, setmap, phys, 0) != 0 ||
- *phys == 0) {
+ if (bus_dmamap_load(dmat, *map, buf, sz, setmap, phys,
+ BUS_DMA_NOWAIT) != 0 || *phys == 0) {
bus_dmamem_free(dmat, buf, *map);
return NULL;
}
@@ -1793,7 +1793,7 @@ agg_attach(device_t dev)
/*filter*/ NULL, NULL,
/*size */ ess->bufsz, 1, 0x3ffff,
/*flags */ 0,
- /*lock */ busdma_lock_mutex, &Giant,
+ /*lock */ NULL, NULL,
&ess->buf_dmat) != 0) {
device_printf(dev, "unable to create dma tag\n");
ret = ENOMEM;
@@ -1807,7 +1807,7 @@ agg_attach(device_t dev)
/*filter*/ NULL, NULL,
/*size */ 3*ess->bufsz, 1, 0x3ffff,
/*flags */ 0,
- /*lock */ busdma_lock_mutex, &Giant,
+ /*lock */ NULL, NULL,
&ess->stat_dmat) != 0) {
device_printf(dev, "unable to create dma tag\n");
ret = ENOMEM;