Searched refs:rtm (Results 1 – 2 of 2) sorted by relevance
131 static void SRTM_PdmSdmaAdapter_AddNewPeriods(srtm_pdm_sdma_runtime_t rtm, uint32_t periodIdx);173 static void SRTM_PdmSdmaAdaptor_ResetLocalBuf(srtm_pdm_sdma_runtime_t rtm) in SRTM_PdmSdmaAdaptor_ResetLocalBuf() argument177 if (rtm->localBuf.buf != NULL) in SRTM_PdmSdmaAdaptor_ResetLocalBuf()179 (void)memset(&rtm->localRtm.bufRtm, 0, sizeof(struct _srtm_pdm_sdma_buf_runtime)); in SRTM_PdmSdmaAdaptor_ResetLocalBuf()181 bytePerSample = (rtm->bitWidth >> 3U) * rtm->pdmChannels; in SRTM_PdmSdmaAdaptor_ResetLocalBuf()183 if (rtm->localBuf.samplesPerPeriod == 0U) in SRTM_PdmSdmaAdaptor_ResetLocalBuf()190 rtm->localRtm.periodSize = rtm->localBuf.bufSize / rtm->localBuf.periods; in SRTM_PdmSdmaAdaptor_ResetLocalBuf()191 rtm->localRtm.periodSize = rtm->localRtm.periodSize / bytePerSample * bytePerSample; in SRTM_PdmSdmaAdaptor_ResetLocalBuf()197 rtm->localRtm.periodSize = bytePerSample * rtm->localBuf.samplesPerPeriod; in SRTM_PdmSdmaAdaptor_ResetLocalBuf()198 rtm->localBuf.periods = rtm->localBuf.bufSize / rtm->localRtm.periodSize; in SRTM_PdmSdmaAdaptor_ResetLocalBuf()[all …]
122 static void SRTM_SaiSdmaAdapter_AddNewPeriods(srtm_sai_sdma_runtime_t rtm, uint32_t periodIdx);187 static void SRTM_SaiSdmaAdaptor_ResetLocalBuf(srtm_sai_sdma_runtime_t rtm, srtm_audio_dir_t dir) in SRTM_SaiSdmaAdaptor_ResetLocalBuf() argument191 alignment = ((uint32_t)(rtm->bitWidth) >> 3U) * (rtm->streamMode == kSAI_Stereo ? 2UL : 1UL); in SRTM_SaiSdmaAdaptor_ResetLocalBuf()198 if (rtm->localBuf.buf != NULL) in SRTM_SaiSdmaAdaptor_ResetLocalBuf()200 (void)memset(&rtm->localRtm.bufRtm, 0, sizeof(struct _srtm_sai_sdma_buf_runtime)); in SRTM_SaiSdmaAdaptor_ResetLocalBuf()202 …(rtm->localBuf.bufSize / rtm->localBuf.periods) & (~SRTM_SAI_SDMA_MAX_LOCAL_PERIOD_ALIGNMENT_MASK); in SRTM_SaiSdmaAdaptor_ResetLocalBuf()207 n = (rtm->periodSize + maxPeriodSize - 1U) / maxPeriodSize; in SRTM_SaiSdmaAdaptor_ResetLocalBuf()209 rtm->localRtm.periodSize = in SRTM_SaiSdmaAdaptor_ResetLocalBuf()210 ((rtm->periodSize + n - 1U) / n + SRTM_SAI_SDMA_MAX_LOCAL_PERIOD_ALIGNMENT_MASK) & in SRTM_SaiSdmaAdaptor_ResetLocalBuf()213 … rtm->localRtm.periodSize = (rtm->localRtm.periodSize + alignment - 1U) / alignment * alignment; in SRTM_SaiSdmaAdaptor_ResetLocalBuf()[all …]