Make the number of DMA buffers a parameter.