Lines Matching refs:i2s

226 	if (cfg->i2s.options & I2S_OPT_BIT_CLK_MASTER) {  in codec_configure_dai()
230 if (cfg->i2s.options & I2S_OPT_FRAME_CLK_MASTER) { in codec_configure_dai()
234 switch (cfg->i2s.word_size) { in codec_configure_dai()
249 cfg->i2s.word_size); in codec_configure_dai()
261 struct i2s_config *i2s; in codec_configure_clocks() local
266 i2s = &cfg->dai_cfg.i2s; in codec_configure_clocks()
268 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()
320 if (i2s->options & I2S_OPT_BIT_CLK_MASTER) { in codec_configure_clocks()
321 bclk_div = osr * mdac / (i2s->word_size * 2U); /* stereo */ in codec_configure_clocks()
322 if ((bclk_div * i2s->word_size * 2) != (osr * mdac)) { in codec_configure_clocks()
324 i2s->frame_clk_freq * i2s->word_size * 2U, in codec_configure_clocks()
341 if (i2s->options & I2S_OPT_BIT_CLK_MASTER) { 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()
373 cfg->i2s.frame_clk_freq); in codec_configure_filters()
384 if (cfg->i2s.frame_clk_freq >= AUDIO_PCM_RATE_192K) { in codec_get_osr_multiple()
386 } else if (cfg->i2s.frame_clk_freq >= AUDIO_PCM_RATE_96K) { in codec_get_osr_multiple()
392 LOG_INF("PCM Rate: %u OSR Multiple: %u", cfg->i2s.frame_clk_freq, in codec_get_osr_multiple()