Home
last modified time | relevance | path

Searched refs:frame_clk_freq (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/drivers/audio/
Dtlv320dac310x.c268 i2s->frame_clk_freq); in codec_configure_clocks()
287 osr_min = (DAC_MOD_CLK_FREQ_MIN + i2s->frame_clk_freq - 1) / in codec_configure_clocks()
288 i2s->frame_clk_freq; in codec_configure_clocks()
289 osr_max = DAC_MOD_CLK_FREQ_MAX / i2s->frame_clk_freq; in codec_configure_clocks()
297 mod_clk = i2s->frame_clk_freq * osr; in codec_configure_clocks()
324 i2s->frame_clk_freq * i2s->word_size * 2U, in codec_configure_clocks()
362 if (cfg->i2s.frame_clk_freq >= AUDIO_PCM_RATE_192K) { in codec_configure_filters()
365 cfg->i2s.frame_clk_freq); in codec_configure_filters()
366 } else if (cfg->i2s.frame_clk_freq >= AUDIO_PCM_RATE_96K) { in codec_configure_filters()
369 cfg->i2s.frame_clk_freq); in codec_configure_filters()
[all …]
Dwm8904.c77 switch (cfg->i2s.frame_clk_freq) { in wm8904_audio_fmt_config()
106 LOG_WRN("Invalid codec sample rate: %d", cfg->i2s.frame_clk_freq); in wm8904_audio_fmt_config()
111 fs = (mclk >> (mclkDiv & 0x1U)) / cfg->i2s.frame_clk_freq; in wm8904_audio_fmt_config()
312 uint32_t sampleRate = cfg->i2s.frame_clk_freq; in wm8904_set_master_clock()
Dtas6422dac.c259 switch (cfg->i2s.frame_clk_freq) { in codec_configure_dai()
270 LOG_ERR("Invalid sampling rate %zu", cfg->i2s.frame_clk_freq); in codec_configure_dai()
Dmpxxdtyy-i2s.c132 i2s_cfg.frame_clk_freq = audio_freq * factor / chan_size; in mpxxdtyy_i2s_configure()
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dtest_i2s_errors.c20 .frame_clk_freq = FRAME_CLK_FREQ, in ZTEST_USER()
58 .frame_clk_freq = FRAME_CLK_FREQ, in ZTEST_USER()
91 .frame_clk_freq = FRAME_CLK_FREQ, in ZTEST_USER()
115 .frame_clk_freq = 0, in ZTEST_USER()
139 .frame_clk_freq = FRAME_CLK_FREQ, in ZTEST_USER()
Dtest_i2s_states.c26 i2s_cfg.frame_clk_freq = 0U; in ZTEST_USER()
50 i2s_cfg.frame_clk_freq = 0U; in ZTEST_USER()
Dcommon.c164 i2s_cfg.frame_clk_freq = FRAME_CLK_FREQ; in configure_stream()
/Zephyr-latest/samples/boards/enjoydigital/litex/i2s/src/
Dmain.c50 i2s_rx_cfg.frame_clk_freq = AUDIO_SAMPLE_FREQ; in init()
75 i2s_tx_cfg.frame_clk_freq = AUDIO_SAMPLE_FREQ; in init()
/Zephyr-latest/drivers/i2s/
Di2s_nrfx.c105 i2s_cfg->frame_clk_freq * ratios[r].ratio_val; in find_suitable_clock()
125 uint32_t diff = lrck_freq >= i2s_cfg->frame_clk_freq in find_suitable_clock()
126 ? (lrck_freq - i2s_cfg->frame_clk_freq) in find_suitable_clock()
127 : (i2s_cfg->frame_clk_freq - lrck_freq); in find_suitable_clock()
161 lrck_freq >= i2s_cfg->frame_clk_freq in find_suitable_clock()
162 ? (lrck_freq - i2s_cfg->frame_clk_freq) in find_suitable_clock()
163 : (i2s_cfg->frame_clk_freq - lrck_freq); in find_suitable_clock()
177 if (lrck_freq < i2s_cfg->frame_clk_freq) { in find_suitable_clock()
430 if (i2s_cfg->frame_clk_freq == 0) { /* -> reset state */ in i2s_nrfx_configure()
Di2s_esp32.c101 i2s_cfg->frame_clk_freq * i2s_cfg->channels * channel_length; in i2s_esp32_calculate_clock()
102 i2s_hal_clock_info->mclk = i2s_cfg->frame_clk_freq * i2s_hal_clock_info->bclk_div; in i2s_esp32_calculate_clock()
105 i2s_cfg->frame_clk_freq * i2s_cfg->channels * channel_length; in i2s_esp32_calculate_clock()
106 i2s_hal_clock_info->mclk = i2s_cfg->frame_clk_freq * mclk_multiple; in i2s_esp32_calculate_clock()
535 if (i2s_cfg->frame_clk_freq == 0U) { in i2s_esp32_configure()
Di2s_mcux_sai.c461 if (i2s_cfg->frame_clk_freq == 0U) { in i2s_mcux_config()
462 LOG_ERR("Invalid frame_clk_freq %u", i2s_cfg->frame_clk_freq); in i2s_mcux_config()
647 SAI_TxSetBitClockRate(base, mclk, i2s_cfg->frame_clk_freq, word_size_bits, in i2s_mcux_config()
670 SAI_RxSetBitClockRate(base, mclk, i2s_cfg->frame_clk_freq, word_size_bits, in i2s_mcux_config()
Di2s_mcux_flexcomm.c140 i2s_cfg->frame_clk_freq / in i2s_mcux_flexcomm_cfg_convert()
215 if (i2s_cfg->frame_clk_freq == 0U) { in i2s_mcux_configure()
Di2s_sam_ssc.c578 if (i2s_cfg->frame_clk_freq == 0U) { in i2s_sam_configure()
611 bit_clk_freq = i2s_cfg->frame_clk_freq * word_size_bits * num_words; in i2s_sam_configure()
Di2s_ll_stm32.c226 if (i2s_cfg->frame_clk_freq == 0U) { in i2s_stm32_configure()
239 bit_clk_freq = i2s_cfg->frame_clk_freq * in i2s_stm32_configure()
Di2s_litex.c356 if (i2s_cfg->frame_clk_freq != dev_audio_freq) { in i2s_litex_configure()
/Zephyr-latest/samples/drivers/i2s/i2s_codec/src/
Dmain.c119 audio_cfg.dai_cfg.i2s.frame_clk_freq = SAMPLE_FREQUENCY; in main()
147 config.frame_clk_freq = SAMPLE_FREQUENCY; in main()
/Zephyr-latest/samples/drivers/i2s/output/src/
Dmain.c75 i2s_cfg.frame_clk_freq = 44100; in main()
/Zephyr-latest/include/zephyr/drivers/
Di2s.h305 uint32_t frame_clk_freq; member
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/
Dmain.c274 config.frame_clk_freq = SAMPLE_FREQUENCY; in main()
/Zephyr-latest/drivers/led_strip/
Dws2812_i2s.c176 config.frame_clk_freq = lrck_hz; /* WS (or LRCK) */ in ws2812_i2s_init()
/Zephyr-latest/samples/drivers/i2s/echo/src/
Dmain.c279 config.frame_clk_freq = SAMPLE_FREQUENCY; in main()
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/src/
Dmain.c537 config.frame_clk_freq = SAMPLE_FREQUENCY; in main()
/Zephyr-latest/tests/drivers/i2s/i2s_speed/src/
Dtest_i2s_speed.c138 i2s_cfg.frame_clk_freq = FRAME_CLK_FREQ; in configure_stream()