Lines Matching full:mclk
106 if (!iface->mclk) { in axg_tdm_iface_set_sysclk()
109 ret = clk_set_rate(iface->mclk, freq); in axg_tdm_iface_set_sysclk()
124 if (!iface->mclk) { in axg_tdm_iface_set_fmt()
125 dev_err(dai->dev, "cpu clock master: mclk missing\n"); in axg_tdm_iface_set_fmt()
269 /* If no specific mclk is requested, default to bit clock * 4 */ in axg_tdm_iface_set_sclk()
270 clk_set_rate(iface->mclk, 4 * srate); in axg_tdm_iface_set_sclk()
272 /* Check if we can actually get the bit clock from mclk */ in axg_tdm_iface_set_sclk()
275 "can't derive sclk %lu from mclk %lu\n", in axg_tdm_iface_set_sclk()
454 ret = clk_prepare_enable(iface->mclk); in axg_tdm_iface_set_bias_level()
459 clk_disable_unprepare(iface->mclk); in axg_tdm_iface_set_bias_level()
529 * mclk maybe be missing when the cpu dai is in slave mode and in axg_tdm_iface_probe()
531 * At this point, ignore the error if mclk is missing. We'll in axg_tdm_iface_probe()
532 * throw an error if the cpu dai is master and mclk is missing in axg_tdm_iface_probe()
534 iface->mclk = devm_clk_get(dev, "mclk"); in axg_tdm_iface_probe()
535 if (IS_ERR(iface->mclk)) { in axg_tdm_iface_probe()
536 ret = PTR_ERR(iface->mclk); in axg_tdm_iface_probe()
538 iface->mclk = NULL; in axg_tdm_iface_probe()
540 return dev_err_probe(dev, ret, "failed to get mclk\n"); in axg_tdm_iface_probe()