Remove unnecessary dma flag
Simplify ringbuffer