Total DMA segments should include total number of record channel(s).
This commit is contained in:
parent
f234bea7d7
commit
f39ee7ef2e
@ -1234,7 +1234,7 @@ via_attach(device_t dev)
|
|||||||
else
|
else
|
||||||
via->dxs_src = 0;
|
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 */
|
/* DMA tag for buffers */
|
||||||
if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
|
if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
|
||||||
|
Loading…
Reference in New Issue
Block a user