Total DMA segments should include total number of record channel(s).

This commit is contained in:
Ariff Abdullah 2007-01-26 23:53:56 +00:00
parent f234bea7d7
commit f39ee7ef2e

View File

@ -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,