Lines Matching full:mclk
107 if (!iface->mclk) { in axg_tdm_iface_set_sysclk()
110 ret = clk_set_rate(iface->mclk, freq); in axg_tdm_iface_set_sysclk()
125 if (!iface->mclk) { in axg_tdm_iface_set_fmt()
126 dev_err(dai->dev, "cpu clock master: mclk missing\n"); in axg_tdm_iface_set_fmt()
278 /* If no specific mclk is requested, default to bit clock * 2 */ in axg_tdm_iface_set_sclk()
279 clk_set_rate(iface->mclk, 2 * srate); in axg_tdm_iface_set_sclk()
281 /* Check if we can actually get the bit clock from mclk */ in axg_tdm_iface_set_sclk()
284 "can't derive sclk %lu from mclk %lu\n", in axg_tdm_iface_set_sclk()
469 ret = clk_prepare_enable(iface->mclk); in axg_tdm_iface_set_bias_level()
474 clk_disable_unprepare(iface->mclk); in axg_tdm_iface_set_bias_level()
544 * mclk maybe be missing when the cpu dai is in slave mode and in axg_tdm_iface_probe()
546 * At this point, ignore the error if mclk is missing. We'll in axg_tdm_iface_probe()
547 * throw an error if the cpu dai is master and mclk is missing in axg_tdm_iface_probe()
549 iface->mclk = devm_clk_get_optional(dev, "mclk"); in axg_tdm_iface_probe()
550 if (IS_ERR(iface->mclk)) in axg_tdm_iface_probe()
551 return dev_err_probe(dev, PTR_ERR(iface->mclk), "failed to get mclk\n"); in axg_tdm_iface_probe()