Lines Matching refs:i2s_cfg
323 const struct i2s_config *i2s_cfg) in i2s_litex_configure() argument
351 if (i2s_cfg->options & I2S_OPT_BIT_CLK_GATED) { in i2s_litex_configure()
356 if (i2s_cfg->frame_clk_freq != dev_audio_freq) { in i2s_litex_configure()
360 if (i2s_cfg->channels == 1) { in i2s_litex_configure()
362 } else if (i2s_cfg->channels == 2) { in i2s_litex_configure()
369 (cfg->fifo_depth * (i2s_cfg->word_size / 8)) / channel_div; in i2s_litex_configure()
371 if (i2s_cfg->block_size < req_buf_s) { in i2s_litex_configure()
375 } else if (i2s_cfg->block_size != req_buf_s) { in i2s_litex_configure()
387 if (i2s_cfg->word_size != 8U && i2s_cfg->word_size != 16U && in i2s_litex_configure()
388 i2s_cfg->word_size != 24U && i2s_cfg->word_size != 32U && in i2s_litex_configure()
389 i2s_cfg->word_size != dev_sample_width) { in i2s_litex_configure()
396 if (dev_format != i2s_cfg->format) { in i2s_litex_configure()
415 if (i2s_cfg->word_size != 16) { in i2s_litex_configure()
422 memcpy(&stream->cfg, i2s_cfg, sizeof(struct i2s_config)); in i2s_litex_configure()