/* Stop the channel selected. In this function just clear the HE. */
int32_t sdma_channel_stop(uint32_t channel)
/* Stop the channel selected. In this function just clear the HE. */
int32_t sdma_channel_stop(uint32_t channel)
{
    if (channel >= SDMA_NUM_CHANNELS) {
        return SDMA_RETV_FAIL;
    }
    HW_SDMAARM_STOP_STAT_SET(1 << channel);
    return SDMA_RETV_SUCCESS;
}