Lines Matching refs:afe_priv
27 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_init_clock() local
31 afe_priv->base_ck[i] = devm_clk_get(afe->dev, base_clks[i]); in mt2701_init_clock()
32 if (IS_ERR(afe_priv->base_ck[i])) { in mt2701_init_clock()
34 return PTR_ERR(afe_priv->base_ck[i]); in mt2701_init_clock()
39 for (i = 0; i < afe_priv->soc->i2s_num; i++) { in mt2701_init_clock()
40 struct mt2701_i2s_path *i2s_path = &afe_priv->i2s_path[i]; in mt2701_init_clock()
90 afe_priv->mrgif_ck = devm_clk_get(afe->dev, "audio_mrgif_pd"); in mt2701_init_clock()
91 if (IS_ERR(afe_priv->mrgif_ck)) { in mt2701_init_clock()
92 if (PTR_ERR(afe_priv->mrgif_ck) == -EPROBE_DEFER) in mt2701_init_clock()
95 afe_priv->mrgif_ck = NULL; in mt2701_init_clock()
137 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_enable_mclk() local
138 struct mt2701_i2s_path *i2s_path = &afe_priv->i2s_path[id]; in mt2701_afe_enable_mclk()
145 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_disable_mclk() local
146 struct mt2701_i2s_path *i2s_path = &afe_priv->i2s_path[id]; in mt2701_afe_disable_mclk()
153 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_enable_btmrg_clk() local
155 return clk_prepare_enable(afe_priv->mrgif_ck); in mt2701_enable_btmrg_clk()
160 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_disable_btmrg_clk() local
162 clk_disable_unprepare(afe_priv->mrgif_ck); in mt2701_disable_btmrg_clk()
167 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_enable_audsys() local
171 ret = clk_prepare_enable(afe_priv->base_ck[MT2701_INFRA_SYS_AUDIO]); in mt2701_afe_enable_audsys()
176 ret = clk_prepare_enable(afe_priv->base_ck[MT2701_TOP_AUD_A1SYS]); in mt2701_afe_enable_audsys()
181 ret = clk_prepare_enable(afe_priv->base_ck[MT2701_TOP_AUD_A2SYS]); in mt2701_afe_enable_audsys()
186 ret = clk_prepare_enable(afe_priv->base_ck[MT2701_AUDSYS_AFE]); in mt2701_afe_enable_audsys()
190 ret = clk_prepare_enable(afe_priv->base_ck[MT2701_AUDSYS_A1SYS]); in mt2701_afe_enable_audsys()
194 ret = clk_prepare_enable(afe_priv->base_ck[MT2701_AUDSYS_A2SYS]); in mt2701_afe_enable_audsys()
198 ret = clk_prepare_enable(afe_priv->base_ck[MT2701_AUDSYS_AFE_CONN]); in mt2701_afe_enable_audsys()
205 clk_disable_unprepare(afe_priv->base_ck[MT2701_AUDSYS_A2SYS]); in mt2701_afe_enable_audsys()
207 clk_disable_unprepare(afe_priv->base_ck[MT2701_AUDSYS_A1SYS]); in mt2701_afe_enable_audsys()
209 clk_disable_unprepare(afe_priv->base_ck[MT2701_AUDSYS_AFE]); in mt2701_afe_enable_audsys()
211 clk_disable_unprepare(afe_priv->base_ck[MT2701_TOP_AUD_A2SYS]); in mt2701_afe_enable_audsys()
213 clk_disable_unprepare(afe_priv->base_ck[MT2701_TOP_AUD_A1SYS]); in mt2701_afe_enable_audsys()
215 clk_disable_unprepare(afe_priv->base_ck[MT2701_INFRA_SYS_AUDIO]); in mt2701_afe_enable_audsys()
222 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_disable_audsys() local
224 clk_disable_unprepare(afe_priv->base_ck[MT2701_AUDSYS_AFE_CONN]); in mt2701_afe_disable_audsys()
225 clk_disable_unprepare(afe_priv->base_ck[MT2701_AUDSYS_A2SYS]); in mt2701_afe_disable_audsys()
226 clk_disable_unprepare(afe_priv->base_ck[MT2701_AUDSYS_A1SYS]); in mt2701_afe_disable_audsys()
227 clk_disable_unprepare(afe_priv->base_ck[MT2701_AUDSYS_AFE]); in mt2701_afe_disable_audsys()
228 clk_disable_unprepare(afe_priv->base_ck[MT2701_TOP_AUD_A1SYS]); in mt2701_afe_disable_audsys()
229 clk_disable_unprepare(afe_priv->base_ck[MT2701_TOP_AUD_A2SYS]); in mt2701_afe_disable_audsys()
230 clk_disable_unprepare(afe_priv->base_ck[MT2701_INFRA_SYS_AUDIO]); in mt2701_afe_disable_audsys()