Lines Matching refs:afe_priv
327 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_i2s_prepare() local
330 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S1_M], in mt8173_afe_i2s_prepare()
332 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S2_M], in mt8173_afe_i2s_prepare()
348 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_startup() local
353 mt8173_afe_dais_enable_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_startup()
354 afe_priv->clocks[MT8173_CLK_I2S3_B]); in mt8173_afe_hdmi_startup()
362 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_shutdown() local
367 mt8173_afe_dais_disable_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_shutdown()
368 afe_priv->clocks[MT8173_CLK_I2S3_B]); in mt8173_afe_hdmi_shutdown()
376 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_prepare() local
380 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_prepare()
382 afe_priv->clocks[MT8173_CLK_I2S3_B], in mt8173_afe_hdmi_prepare()
953 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_runtime_suspend() local
962 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S1_M]); in mt8173_afe_runtime_suspend()
963 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S2_M]); in mt8173_afe_runtime_suspend()
964 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_BCK0]); in mt8173_afe_runtime_suspend()
965 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_BCK1]); in mt8173_afe_runtime_suspend()
966 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD]); in mt8173_afe_runtime_suspend()
967 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD_BUS]); in mt8173_afe_runtime_suspend()
968 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_INFRASYS_AUD]); in mt8173_afe_runtime_suspend()
975 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_runtime_resume() local
978 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_INFRASYS_AUD]); in mt8173_afe_runtime_resume()
982 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD_BUS]); in mt8173_afe_runtime_resume()
986 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD]); in mt8173_afe_runtime_resume()
990 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_BCK0]); in mt8173_afe_runtime_resume()
994 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_BCK1]); in mt8173_afe_runtime_resume()
997 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_I2S1_M]); in mt8173_afe_runtime_resume()
1000 ret = clk_prepare_enable(afe_priv->clocks[MT8173_CLK_I2S2_M]); in mt8173_afe_runtime_resume()
1019 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S1_M]); in mt8173_afe_runtime_resume()
1021 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_I2S2_M]); in mt8173_afe_runtime_resume()
1023 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_BCK0]); in mt8173_afe_runtime_resume()
1025 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD]); in mt8173_afe_runtime_resume()
1027 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_TOP_PDN_AUD_BUS]); in mt8173_afe_runtime_resume()
1029 clk_disable_unprepare(afe_priv->clocks[MT8173_CLK_INFRASYS_AUD]); in mt8173_afe_runtime_resume()
1036 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_init_audio_clk() local
1039 afe_priv->clocks[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt8173_afe_init_audio_clk()
1040 if (IS_ERR(afe_priv->clocks[i])) { in mt8173_afe_init_audio_clk()
1043 return PTR_ERR(afe_priv->clocks[i]); in mt8173_afe_init_audio_clk()
1046 clk_set_rate(afe_priv->clocks[MT8173_CLK_BCK0], 22579200); /* 22M */ in mt8173_afe_init_audio_clk()
1047 clk_set_rate(afe_priv->clocks[MT8173_CLK_BCK1], 24576000); /* 24M */ in mt8173_afe_init_audio_clk()
1056 struct mt8173_afe_private *afe_priv; in mt8173_afe_pcm_dev_probe() local
1066 afe->platform_priv = devm_kzalloc(&pdev->dev, sizeof(*afe_priv), in mt8173_afe_pcm_dev_probe()
1068 afe_priv = afe->platform_priv; in mt8173_afe_pcm_dev_probe()
1069 if (!afe_priv) in mt8173_afe_pcm_dev_probe()