Lines Matching refs:ctx
140 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card);
152 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list);
159 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card);
183 ret = clk_prepare_enable(ctx->mclk);
185 clk_disable_unprepare(ctx->mclk);
187 ret = clk_set_rate(ctx->mclk, 19200000);
201 &ctx->sof_headset, NULL, 0);
207 jack = &ctx->sof_headset;
234 struct sof_card_private *ctx = snd_soc_card_get_drvdata(rtd->card);
240 ret = clk_prepare_enable(ctx->mclk);
340 struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
352 if (list_empty(&ctx->hdmi_pcm_list))
355 if (ctx->common_hdmi_codec_drv) {
356 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm,
362 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) {
738 struct sof_card_private *ctx;
742 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
743 if (!ctx)
778 ctx->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3");
779 if (IS_ERR(ctx->mclk)) {
780 ret = PTR_ERR(ctx->mclk);
788 ret = clk_prepare_enable(ctx->mclk);
824 INIT_LIST_HEAD(&ctx->hdmi_pcm_list);
834 ctx->common_hdmi_codec_drv = mach->mach_params.common_hdmi_codec_drv;
836 snd_soc_card_set_drvdata(&sof_audio_card_rt5682, ctx);