Lines Matching refs:mclk_rate

214 					     uint32_t mclk_rate)  in dai_ssp_setup_initial_mclk_source()  argument
233 if (ft[i].freq % mclk_rate == 0) { in dai_ssp_setup_initial_mclk_source()
240 LOG_ERR("MCLK %d, no valid source", mclk_rate); in dai_ssp_setup_initial_mclk_source()
272 uint32_t mclk_rate) in dai_ssp_check_current_mclk_source() argument
279 LOG_INF("MCLK %d, source = %d", mclk_rate, mp->mclk_source_clock); in dai_ssp_check_current_mclk_source()
281 if (ft[mp->mclk_source_clock].freq % mclk_rate != 0) { in dai_ssp_check_current_mclk_source()
283 mclk_rate, mp->mclk_source_clock); in dai_ssp_check_current_mclk_source()
289 if (mp->mclk_rate[mclk_id] != mclk_rate) { in dai_ssp_check_current_mclk_source()
291 mclk_id, mclk_rate, mp->mclk_rate[mclk_id]); in dai_ssp_check_current_mclk_source()
337 static int dai_ssp_mn_set_mclk(struct dai_intel_ssp *dp, uint16_t mclk_id, uint32_t mclk_rate) in dai_ssp_mn_set_mclk() argument
352 ret = dai_ssp_check_current_mclk_source(dp, mclk_id, mclk_rate); in dai_ssp_mn_set_mclk()
354 ret = dai_ssp_setup_initial_mclk_source(dp, mclk_id, mclk_rate); in dai_ssp_mn_set_mclk()
361 LOG_INF("mclk_rate %d, mclk_source_clock %d", mclk_rate, mp->mclk_source_clock); in dai_ssp_mn_set_mclk()
363 ret = dai_ssp_set_mclk_divider(dp, mclk_id, ft[mp->mclk_source_clock].freq / mclk_rate); in dai_ssp_mn_set_mclk()
365 mp->mclk_rate[mclk_id] = mclk_rate; in dai_ssp_mn_set_mclk()
1133 ssp_plat_data->params.mclk_rate); in dai_ssp_mclk_prepare_enable()
1135 LOG_ERR("invalid mclk_rate = %d for mclk_id = %d", ssp_plat_data->params.mclk_rate, in dai_ssp_mclk_prepare_enable()
1452 if (!ssp_plat_data->params.mclk_rate || in dai_ssp_set_config_tplg()
1453 ssp_plat_data->params.mclk_rate > ft[DAI_INTEL_SSP_MAX_FREQ_INDEX].freq) { in dai_ssp_set_config_tplg()
1454 LOG_ERR("invalid MCLK = %d Hz (valid < %d)", ssp_plat_data->params.mclk_rate, in dai_ssp_set_config_tplg()
1461 ssp_plat_data->params.bclk_rate > ssp_plat_data->params.mclk_rate) { in dai_ssp_set_config_tplg()
1463 ssp_plat_data->params.mclk_rate); in dai_ssp_set_config_tplg()