Fix arithmetic error resulting in incorrect dma channel usage