Use DMA_NUM_CHANNELS for index if allocation fails