• Home
  • Raw
  • Download

Lines Matching refs:ctx

56 	struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card);  in platform_clock_control()  local
66 if (ctx->mclk) { in platform_clock_control()
67 ret = clk_prepare_enable(ctx->mclk); in platform_clock_control()
99 if (ctx->mclk) in platform_clock_control()
100 clk_disable_unprepare(ctx->mclk); in platform_clock_control()
193 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(runtime->card); in cht_codec_init() local
212 if (ctx->use_ssp0) { in cht_codec_init()
227 &ctx->headset, in cht_codec_init()
233 snd_jack_set_key(ctx->headset.jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); in cht_codec_init()
234 snd_jack_set_key(ctx->headset.jack, SND_JACK_BTN_1, KEY_VOLUMEUP); in cht_codec_init()
235 snd_jack_set_key(ctx->headset.jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); in cht_codec_init()
237 rt5670_set_jack_detect(component, &ctx->headset); in cht_codec_init()
238 if (ctx->mclk) { in cht_codec_init()
249 ret = clk_prepare_enable(ctx->mclk); in cht_codec_init()
251 clk_disable_unprepare(ctx->mclk); in cht_codec_init()
253 ret = clk_set_rate(ctx->mclk, CHT_PLAT_CLK_3_HZ); in cht_codec_init()
266 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(rtd->card); in cht_codec_fixup() local
277 if (ctx->use_ssp0) { in cht_codec_fixup()
390 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); in cht_suspend_pre() local
394 ctx->codec_name, sizeof(ctx->codec_name))) { in cht_suspend_pre()
407 struct cht_mc_private *ctx = snd_soc_card_get_drvdata(card); in cht_resume_post() local
411 ctx->codec_name, sizeof(ctx->codec_name))) { in cht_resume_post()