mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Fixed an acquired dma problem with respect to sb cards only.
This commit is contained in:
parent
f8f6afaf7c
commit
6eca7bce6c
@ -205,7 +205,7 @@ open_dmap(int dev, int mode, struct dma_buffparms * dmap, int chan)
|
||||
dmap->max_fragments = 65536; /* Just a large value */
|
||||
dmap->byte_counter = 0;
|
||||
isa_dma_acquire(chan);
|
||||
|
||||
dmap->dma_chan = chan;
|
||||
dma_init_buffers(dev, dmap);
|
||||
|
||||
return 0;
|
||||
@ -217,7 +217,7 @@ close_dmap(int dev, struct dma_buffparms * dmap, int chan)
|
||||
if (dmap->flags & DMA_BUSY)
|
||||
dmap->dma_mode = DMODE_NONE;
|
||||
dmap->flags &= ~DMA_BUSY;
|
||||
isa_dma_release(chan);
|
||||
isa_dma_release(dmap->dma_chan);
|
||||
#ifdef RUNTIME_DMA_ALLOC
|
||||
sound_free_dmap(dev, dmap);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user