Lines Matching refs:afe_priv

243 	struct mt8195_afe_private *afe_priv = afe->platform_priv;
247 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL]);
248 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL1_TUNER]);
251 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2]);
252 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2_TUNER]);
264 struct mt8195_afe_private *afe_priv = afe->platform_priv;
268 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL1_TUNER]);
269 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL]);
272 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2_TUNER]);
273 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2]);
360 struct mt8195_afe_private *afe_priv = afe->platform_priv;
368 return clk_get_rate(afe_priv->clk[clk_id]);
379 struct mt8195_afe_private *afe_priv = afe->platform_priv;
384 afe_priv->clk =
385 devm_kcalloc(afe->dev, MT8195_CLK_NUM, sizeof(*afe_priv->clk),
387 if (!afe_priv->clk)
391 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]);
392 if (IS_ERR(afe_priv->clk[i])) {
395 PTR_ERR(afe_priv->clk[i]));
396 return PTR_ERR(afe_priv->clk[i]);
596 struct mt8195_afe_private *afe_priv = afe->platform_priv;
610 mt8195_afe_enable_clk(afe, afe_priv->clk[clk_array[i]]);
617 struct mt8195_afe_private *afe_priv = afe->platform_priv;
631 mt8195_afe_disable_clk(afe, afe_priv->clk[clk_array[i]]);
650 struct mt8195_afe_private *afe_priv = afe->platform_priv;
663 mt8195_afe_enable_clk(afe, afe_priv->clk[clk_array[i]]);
673 struct mt8195_afe_private *afe_priv = afe->platform_priv;
689 mt8195_afe_disable_clk(afe, afe_priv->clk[clk_array[i]]);