summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorariff <ariff@FreeBSD.org>2007-01-26 23:53:56 +0000
committerariff <ariff@FreeBSD.org>2007-01-26 23:53:56 +0000
commit5b6974c9c1a30e251035a116148f5cee401d0f7c (patch)
tree706a4a22f79cc1b8df7f9a578b1202f99cee7c2b /sys/dev/sound
parentc083ee91faebfda76ef36986da2e0c942a59e96e (diff)
downloadFreeBSD-src-5b6974c9c1a30e251035a116148f5cee401d0f7c.zip
FreeBSD-src-5b6974c9c1a30e251035a116148f5cee401d0f7c.tar.gz
Total DMA segments should include total number of record channel(s).
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pci/via8233.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/via8233.c b/sys/dev/sound/pci/via8233.c
index c1f0578..a2dfd4a 100644
--- a/sys/dev/sound/pci/via8233.c
+++ b/sys/dev/sound/pci/via8233.c
@@ -1234,7 +1234,7 @@ via_attach(device_t dev)
else
via->dxs_src = 0;
- nsegs = (via_dxs_chnum + via_sgd_chnum) * via->blkcnt;
+ nsegs = (via_dxs_chnum + via_sgd_chnum + NWRCHANS) * via->blkcnt;
/* DMA tag for buffers */
if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
OpenPOWER on IntegriCloud