Home
last modified time | relevance | path

Searched refs:channelNum (Results 1 – 3 of 3) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/components/audio/
Dfsl_adapter_flexcomm_i2s.c106 uint8_t channelNum; in HAL_AudioCommonInit() local
129 channelNum = (uint8_t)config->lineChannels; in HAL_AudioCommonInit()
140 if (channelNum == (uint8_t)kHAL_AudioMono) in HAL_AudioCommonInit()
143 channelNum = 1; in HAL_AudioCommonInit()
145 else if (channelNum == (uint8_t)kHAL_AudioMonoRight) in HAL_AudioCommonInit()
149 channelNum = 2; in HAL_AudioCommonInit()
151 else if (channelNum == (uint8_t)kHAL_AudioMonoLeft) in HAL_AudioCommonInit()
154 channelNum = 2; in HAL_AudioCommonInit()
162 …)(config->srcClock_Hz / (uint32_t)config->sampleRate_Hz / (uint32_t)config->bitWidth / channelNum); in HAL_AudioCommonInit()
166 i2sConfig.frameLength = (uint16_t)config->bitWidth * channelNum; in HAL_AudioCommonInit()
[all …]
Dfsl_adapter_sai.c269 uint8_t channelNum; in HAL_AudioCommonInit() local
335 channelNum = (uint8_t)config->lineChannels; in HAL_AudioCommonInit()
337 if (channelNum == (uint8_t)kHAL_AudioMono) in HAL_AudioCommonInit()
341 channelNum = 1; in HAL_AudioCommonInit()
343 else if (channelNum < (uint8_t)kHAL_AudioStereo) in HAL_AudioCommonInit()
347 saiConfig.serialData.dataMaskedWord = 0x1UL << channelNum; in HAL_AudioCommonInit()
348 channelNum = 2; in HAL_AudioCommonInit()
352 saiConfig.frameSync.frameSyncWidth = config->bitWidth * channelNum >> 1U; in HAL_AudioCommonInit()
353 saiConfig.serialData.dataWordNum = channelNum; in HAL_AudioCommonInit()
558 config->bitWidth, channelNum); in HAL_AudioCommonInit()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/components/srtm/services/
Dsrtm_sai_sdma_adapter.c1010 uint8_t channelNum; in SRTM_SaiSdmaAdapter_Start() local
1101 channelNum = 2U; in SRTM_SaiSdmaAdapter_Start()
1105 channelNum = 1U; in SRTM_SaiSdmaAdapter_Start()
1110 …guardPeroids = (uint32_t)(((uint64_t)thisRtm->srate * thisRtm->bitWidth * channelNum * (*guardTime… in SRTM_SaiSdmaAdapter_Start()