Lines Matching full:mclk

34 /* Default: MCLK on, MCLK 19.2M, SSP0  */
152 dev_err(rtd->dev, "invalid mclk freq %d\n", mclk_freq); in sof_rt5682_codec_init()
156 /* need to enable ASRC function for 24MHz mclk rate */ in sof_rt5682_codec_init()
201 ret = clk_prepare_enable(ctx->rt5682.mclk); in sof_rt5682_codec_init()
203 clk_disable_unprepare(ctx->rt5682.mclk); in sof_rt5682_codec_init()
205 ret = clk_set_rate(ctx->rt5682.mclk, 19200000); in sof_rt5682_codec_init()
208 dev_err(rtd->dev, "unable to set MCLK rate\n"); in sof_rt5682_codec_init()
264 ret = clk_prepare_enable(ctx->rt5682.mclk); in sof_rt5682_hw_params()
267 "could not configure MCLK state"); in sof_rt5682_hw_params()
288 /* get the tplg configured mclk. */ in sof_rt5682_hw_params()
291 dev_err(rtd->dev, "invalid mclk freq %d\n", pll_in); in sof_rt5682_hw_params()
321 /* when MCLK is 512FS, no need to set PLL configuration additionally. */ in sof_rt5682_hw_params()
354 * For MCLK = 24.576MHz and sample rate = 96KHz case, use PLL1 We don't test in sof_rt5682_hw_params()
357 * all if pll_in == pll_out. ex, MCLK = 24.576Mhz and sample rate = 48KHz in sof_rt5682_hw_params()
566 * Currently, On SKL+ platforms MCLK will be turned off in sof in sof_card_dai_links_create()
572 * It can be removed once we can control MCLK by driver. in sof_card_dai_links_create()
714 ctx->rt5682.mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); in sof_audio_probe()
715 if (IS_ERR(ctx->rt5682.mclk)) { in sof_audio_probe()
716 ret = PTR_ERR(ctx->rt5682.mclk); in sof_audio_probe()
719 "Failed to get MCLK from pmc_plt_clk_3: %d\n", in sof_audio_probe()
724 ret = clk_prepare_enable(ctx->rt5682.mclk); in sof_audio_probe()
727 "could not configure MCLK state"); in sof_audio_probe()