dma40: use helpers for channel type check