/* param base SAI base pointer param handle SAI eDMA handle pointer. retval valid slot count that application submit.  */
uint32_t SAI_TransferGetValidTransferSlotsEDMA(I2S_Type *base, sai_edma_handle_t *handle)
/* param base SAI base pointer param handle SAI eDMA handle pointer. retval valid slot count that application submit.  */
uint32_t SAI_TransferGetValidTransferSlotsEDMA(I2S_Type *base, sai_edma_handle_t *handle)
{
    uint32_t validSlot = 0U;
    for (uint32_t i = 0U; i < (uint32_t)SAI_XFER_QUEUE_SIZE; i++)
    {
        if (handle->saiQueue[i].data == NULL)
        {
            validSlot++;
        }
    }
    return validSlot;
}