Also refactored code to remove a confusing duplicate "dma_chan" field which had the same purpose of the "use_dma" boolean.