Home
last modified time | relevance | path

Searched refs:sampleRate (Results 1 – 25 of 67) sorted by relevance

123

/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/wm8904/
Dfsl_wm8904.c48 wm8904_sample_rate_t sampleRate,
76 wm8904_sample_rate_t sampleRate, in WM8904_UpdateFormat() argument
90 … (uint16_t)(((uint16_t)(fsRatio) << 10U) | (uint16_t)(sampleRate))); in WM8904_UpdateFormat()
401 …WM8904_SetMasterClock(handle, sysclk, (uint32_t)(WM8904_MAP_SAMPLERATE(config->format.sampleRate)), in WM8904_Init()
484 config->format.sampleRate = kWM8904_SampleRate48kHz; in WM8904_GetDefaultConfig()
517 status_t WM8904_SetMasterClock(wm8904_handle_t *handle, uint32_t sysclk, uint32_t sampleRate, uint3… in WM8904_SetMasterClock() argument
519 uint32_t bclk = sampleRate * bitWidth * 2U; in WM8904_SetMasterClock()
528 if ((sysclk / bclk > 48U) || (bclk / sampleRate > 2047U) || (bclk / sampleRate < 8U)) in WM8904_SetMasterClock()
636 audioInterface = (uint16_t)((1UL << 11U) | (bclk / sampleRate)); in WM8904_SetMasterClock()
841 uint32_t sampleRate = 0U; in WM8904_CheckAudioFormat() local
[all …]
Dfsl_wm8904.h257 wm8904_sample_rate_t sampleRate; /*!< Sample rate */ member
383 status_t WM8904_SetMasterClock(wm8904_handle_t *handle, uint32_t sysclk, uint32_t sampleRate, uint3…
419 status_t WM8904_SetAudioFormat(wm8904_handle_t *handle, uint32_t sysclk, uint32_t sampleRate, uint3…
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/pcm512x/
Dfsl_pcm512x.c235 status_t PCM512x_SetFormat(pcm512x_handle_t *handle, uint32_t mclk, uint32_t sampleRate, uint32_t b… in PCM512x_SetFormat() argument
241 if ((sampleRate != kPCM512x_AudioSampleRate44100Hz) && in PCM512x_SetFormat()
242 (sampleRate != kPCM512x_AudioSampleRate88200Hz) && in PCM512x_SetFormat()
243 (sampleRate != kPCM512x_AudioSampleRate176400Hz) && in PCM512x_SetFormat()
244 (sampleRate != kPCM512x_AudioSampleRate48KHz) && in PCM512x_SetFormat()
245 (sampleRate != kPCM512x_AudioSampleRate96KHz) && in PCM512x_SetFormat()
246 (sampleRate != kPCM512x_AudioSampleRate192KHz)) { in PCM512x_SetFormat()
258 if (sampleRate % 8000) { in PCM512x_SetFormat()
316 dac_rate = dac_pcm512x_get_dac_rate(sampleRate); in PCM512x_SetFormat()
317 dac_div = dac_pcm512x_get_dac_div(sampleRate); in PCM512x_SetFormat()
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/
Dfsl_codec_adapter.c243 status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument
252 retVal = HAL_CODEC_WM8904_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
258 retVal = HAL_CODEC_WM8960_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
264 retVal = HAL_CODEC_WM8962_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
270 retVal = HAL_CODEC_WM8524_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
276 retVal = HAL_CODEC_SGTL5000_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
282 retVal = HAL_CODEC_DA7212_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
288 retVal = HAL_CODEC_CS42888_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
294 retVal = HAL_CODEC_CS42448_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
300 retVal = HAL_CODEC_AK4497_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
[all …]
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/easrc/
Dfsl_asrc.c635 if (config->contextInput.sampleRate == config->contextOutput.sampleRate) in ASRC_SetContextProcessorConfig()
659 if (config->contextInput.sampleRate <= config->contextOutput.sampleRate) in ASRC_SetContextProcessorConfig()
671 if (ASRC_GetPrefilterConfig(&config->contextPrefilter, config->contextInput.sampleRate, in ASRC_SetContextProcessorConfig()
672 … config->contextOutput.sampleRate) == kStatus_InvalidArgument) in ASRC_SetContextProcessorConfig()
844 config->contextInput.sampleRate = inSampleRate; in ASRC_GetContextDefaultConfig()
855 config->contextOutput.sampleRate = outSampleRate; in ASRC_GetContextDefaultConfig()
896 if (((config->contextInput.sampleRate < (uint32_t)kASRC_SampleRate_8000) || in ASRC_SetContextConfig()
897 (config->contextInput.sampleRate > (uint32_t)kASRC_SampleRate_768000)) || in ASRC_SetContextConfig()
898 ((config->contextOutput.sampleRate < (uint32_t)kASRC_SampleRate_8000) || in ASRC_SetContextConfig()
899 (config->contextOutput.sampleRate > (uint32_t)kASRC_SampleRate_768000))) in ASRC_SetContextConfig()
[all …]
/hal_nxp-3.6.0/imx/drivers/
Dadc_imx7d.c55 ADC_SetSampleRate(base, initConfig->sampleRate); in ADC_Init()
106 void ADC_SetSampleRate(ADC_Type* base, uint32_t sampleRate) in ADC_SetSampleRate() argument
111 assert((sampleRate <= 1000000) && (sampleRate >= 1563)); in ADC_SetSampleRate()
116 divider /= sampleRate * 6; in ADC_SetSampleRate()
286 …uint32_t sampleRate = (4000000 >> (2 + (ADC_TIMER_UNIT_REG(base) >> ADC_TIMER_UNIT_PRE_DIV_SHIFT))… in ADC_SetConvertRate() local
289 uint32_t convertDiv = sampleRate / convertRate; in ADC_SetConvertRate()
290 assert((sampleRate / convertRate) <= ADC_CH_A_CFG1_CHA_TIMER_MASK); in ADC_SetConvertRate()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/wm8524/
Dfsl_codec_wm8524_adapter.c69 status_t HAL_CODEC_WM8524_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW… in HAL_CODEC_WM8524_SetFormat() argument
72 if ((sampleRate < 8000U) || ((sampleRate > 192000U))) in HAL_CODEC_WM8524_SetFormat()
Dfsl_codec_wm8524_adapter.h58 status_t HAL_CODEC_WM8524_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_WM8524_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/ak4497/
Dfsl_codec_ak4497_adapter.h58 status_t HAL_CODEC_AK4497_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_AK4497_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
Dfsl_codec_ak4497_adapter.c73 status_t HAL_CODEC_AK4497_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW… in HAL_CODEC_AK4497_SetFormat() argument
78 sampleRate, bitWidth); in HAL_CODEC_AK4497_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/cs42448/
Dfsl_codec_cs42448_adapter.h58 status_t HAL_CODEC_CS42448_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_CS42448_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/cs42888/
Dfsl_codec_cs42888_adapter.h58 status_t HAL_CODEC_CS42888_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_CS42888_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/da7212/
Dfsl_codec_da7212_adapter.h58 status_t HAL_CODEC_DA7212_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_DA7212_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/pcm186x/
Dfsl_codec_pcm186x_adapter.h58 status_t HAL_CODEC_PCM186x_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_PCM186x_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
Dfsl_codec_adapter.c71 status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitWidth) in HAL_CODEC_SetFormat() argument
77 return PCM186x_SetFormat(devHandle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
Dfsl_codec_pcm186x_adapter.c71 status_t HAL_CODEC_PCM186x_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit… in HAL_CODEC_PCM186x_SetFormat() argument
77 return PCM186x_SetFormat(devHandle, mclk, sampleRate, bitWidth); in HAL_CODEC_PCM186x_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/pcm512x/
Dfsl_codec_pcm512x_adapter.h58 status_t HAL_CODEC_PCM512x_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_PCM512x_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
Dfsl_codec_pcm512x_adapter.c71 status_t HAL_CODEC_PCM512x_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit… in HAL_CODEC_PCM512x_SetFormat() argument
77 return PCM512x_SetFormat(devHandle, mclk, sampleRate, bitWidth); in HAL_CODEC_PCM512x_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/sgtl5000/
Dfsl_codec_sgtl_adapter.h58 status_t HAL_CODEC_SGTL5000_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bi…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_SGTL5000_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/tfa9896/
Dfsl_codec_tfa9896_adapter.h58 status_t HAL_CODEC_TFA9896_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit…
168 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
170 return HAL_CODEC_TFA9896_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/tfa9xxx/
Dfsl_codec_tfa9xxx_adapter.h58 status_t HAL_CODEC_TFA9XXX_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bit…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_TFA9XXX_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/wm8904/
Dfsl_codec_wm8904_adapter.h58 status_t HAL_CODEC_WM8904_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_WM8904_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/wm8960/
Dfsl_codec_wm8960_adapter.h58 status_t HAL_CODEC_WM8960_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_WM8960_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/port/wm8962/
Dfsl_codec_wm8962_adapter.h58 status_t HAL_CODEC_WM8962_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32_t bitW…
171 static inline status_t HAL_CODEC_SetFormat(void *handle, uint32_t mclk, uint32_t sampleRate, uint32… in HAL_CODEC_SetFormat() argument
173 return HAL_CODEC_WM8962_SetFormat(handle, mclk, sampleRate, bitWidth); in HAL_CODEC_SetFormat()
/hal_nxp-3.6.0/mcux/mcux-sdk/components/codec/tfa9xxx/
Dfsl_tfa9xxx.h80 enum _tfa9xxx_sample_rate sampleRate; /*!< sample rate */ member
155 status_t TFA9XXX_ConfigDataFormat(tfa9xxx_handle_t *handle, uint32_t mclk, uint32_t sampleRate, uin…

123