aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2021-09-04 22:22:53 +0000
committerAlexander Motin <mav@FreeBSD.org>2021-09-04 22:30:36 +0000
commit1f7a6325fe1b628c18b51d94eeec879c38c650b8 (patch)
tree2208fadef2adb93186a9b62cde12f6dc14cb7182 /sys/dev/sound/pcm
parent440320b620a29fdc4033a2b9b67eb4401cb903bb (diff)
downloadsrc-1f7a6325fe1b628c18b51d94eeec879c38c650b8.tar.gz
src-1f7a6325fe1b628c18b51d94eeec879c38c650b8.zip
sound(4): Remove pointless Giant from bus_dma_tag_create().
None of the drivers really implement asynchronous buffer loading, so they don't need lock there. The only question is which of them have BUS_DMA_NOWAIT flag there already, and to which it should be added.
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r--sys/dev/sound/pcm/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c
index b86b67e44344..14fc098d6b33 100644
--- a/sys/dev/sound/pcm/buffer.c
+++ b/sys/dev/sound/pcm/buffer.c
@@ -107,7 +107,7 @@ sndbuf_alloc(struct snd_dbuf *b, bus_dma_tag_t dmatag, int dmaflags,
return (ENOMEM);
}
if (bus_dmamap_load(b->dmatag, b->dmamap, b->buf, b->maxsize,
- sndbuf_setmap, b, 0) != 0 || b->buf_addr == 0) {
+ sndbuf_setmap, b, BUS_DMA_NOWAIT) != 0 || b->buf_addr == 0) {
sndbuf_free(b);
return (ENOMEM);
}