diff options
author | Marius Strobl <marius@FreeBSD.org> | 2011-03-11 22:42:04 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2011-03-11 22:42:04 +0000 |
commit | 496a7fcaae95bf960be5310fd37e56bf9ca2550c (patch) | |
tree | 080c193d900ff774c1f66406b15a729e2f3e357a /sys/dev/sound/pcm | |
parent | a1d090d4286800bedc2d38767c5bc8a7e4c5cb21 (diff) | |
download | src-496a7fcaae95bf960be5310fd37e56bf9ca2550c.tar.gz src-496a7fcaae95bf960be5310fd37e56bf9ca2550c.zip |
Allocate the sound buffer DMA memory coherent. While NetBSD typically
also does this for sound drivers it's probably not necessary for all
combinations of controllers and drivers. However, given that our sound
drivers completely lack bus_dmamap_sync(9) calls this at least serves
as a workaround when enabling use of the IOMMU streaming buffers on
sparc64 and generally for arm and mips.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=219548
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r-- | sys/dev/sound/pcm/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c index e502f79b1928..cd4d03bad691 100644 --- a/sys/dev/sound/pcm/buffer.c +++ b/sys/dev/sound/pcm/buffer.c @@ -93,7 +93,7 @@ sndbuf_alloc(struct snd_dbuf *b, bus_dma_tag_t dmatag, int dmaflags, int ret; b->dmatag = dmatag; - b->dmaflags = dmaflags | BUS_DMA_NOWAIT; + b->dmaflags = dmaflags | BUS_DMA_NOWAIT | BUS_DMA_COHERENT; b->maxsize = size; b->bufsize = b->maxsize; b->buf_addr = 0; |