• Home
  • Raw
  • Download

Lines Matching refs:afe_priv

325 	struct mt8173_afe_private *afe_priv = afe->platform_priv;  in mt8173_afe_i2s_prepare()  local
328 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S1_M], in mt8173_afe_i2s_prepare()
330 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S2_M], in mt8173_afe_i2s_prepare()
346 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_startup() local
351 mt8173_afe_dais_enable_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_startup()
352 afe_priv->clocks[MT8173_CLK_I2S3_B]); in mt8173_afe_hdmi_startup()
360 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_shutdown() local
365 mt8173_afe_dais_disable_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_shutdown()
366 afe_priv->clocks[MT8173_CLK_I2S3_B]); in mt8173_afe_hdmi_shutdown()
374 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_prepare() local
378 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_prepare()
380 afe_priv->clocks[MT8173_CLK_I2S3_B], in mt8173_afe_hdmi_prepare()
951 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_runtime_suspend() local
960 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S1_M]); in mt8173_afe_runtime_suspend()
961 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S2_M]); in mt8173_afe_runtime_suspend()
962 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_BCK0]); in mt8173_afe_runtime_suspend()
963 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_BCK1]); in mt8173_afe_runtime_suspend()
964 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD]); in mt8173_afe_runtime_suspend()
965 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD_BUS]); in mt8173_afe_runtime_suspend()
966 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_INFRASYS_AUD]); in mt8173_afe_runtime_suspend()
973 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_runtime_resume() local
976 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_INFRASYS_AUD]); in mt8173_afe_runtime_resume()
980 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD_BUS]); in mt8173_afe_runtime_resume()
984 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD]); in mt8173_afe_runtime_resume()
988 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_BCK0]); in mt8173_afe_runtime_resume()
992 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_BCK1]); in mt8173_afe_runtime_resume()
995 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_I2S1_M]); in mt8173_afe_runtime_resume()
998 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_I2S2_M]); in mt8173_afe_runtime_resume()
1017 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S1_M]); in mt8173_afe_runtime_resume()
1019 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S2_M]); in mt8173_afe_runtime_resume()
1021 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_BCK0]); in mt8173_afe_runtime_resume()
1023 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD]); in mt8173_afe_runtime_resume()
1025 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD_BUS]); in mt8173_afe_runtime_resume()
1027 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_INFRASYS_AUD]); in mt8173_afe_runtime_resume()
1034 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_init_audio_clk() local
1037 afe_priv->clocks[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt8173_afe_init_audio_clk()
1038 if (IS_ERR(afe_priv->clocks[i])) { in mt8173_afe_init_audio_clk()
1041 return PTR_ERR(afe_priv->clocks[i]); in mt8173_afe_init_audio_clk()
1044 clk_set_rate(afe_priv->clocks[MT8173_CLK_BCK0], 22579200); /* 22M */ in mt8173_afe_init_audio_clk()
1045 clk_set_rate(afe_priv->clocks[MT8173_CLK_BCK1], 24576000); /* 24M */ in mt8173_afe_init_audio_clk()
1054 struct mt8173_afe_private *afe_priv; in mt8173_afe_pcm_dev_probe() local
1065 afe->platform_priv = devm_kzalloc(&pdev->dev, sizeof(*afe_priv), in mt8173_afe_pcm_dev_probe()
1067 afe_priv = afe->platform_priv; in mt8173_afe_pcm_dev_probe()
1068 if (!afe_priv) in mt8173_afe_pcm_dev_probe()