Home
last modified time | relevance | path

Searched refs:afe_priv (Results 1 – 25 of 35) sorted by relevance

12

/sound/soc/mediatek/mt8186/
Dmt8186-afe-clk.c78 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_set_audio_int_bus_parent() local
81 ret = clk_set_parent(afe_priv->clk[CLK_MUX_AUDIOINTBUS], in mt8186_set_audio_int_bus_parent()
82 afe_priv->clk[clk_id]); in mt8186_set_audio_int_bus_parent()
95 struct mt8186_afe_private *afe_priv = afe->platform_priv; in apll1_mux_setting() local
99 ret = clk_prepare_enable(afe_priv->clk[CLK_TOP_MUX_AUD_1]); in apll1_mux_setting()
105 ret = clk_set_parent(afe_priv->clk[CLK_TOP_MUX_AUD_1], in apll1_mux_setting()
106 afe_priv->clk[CLK_TOP_APLL1_CK]); in apll1_mux_setting()
115 ret = clk_prepare_enable(afe_priv->clk[CLK_TOP_MUX_AUD_ENG1]); in apll1_mux_setting()
121 ret = clk_set_parent(afe_priv->clk[CLK_TOP_MUX_AUD_ENG1], in apll1_mux_setting()
122 afe_priv->clk[CLK_TOP_APLL1_D8]); in apll1_mux_setting()
[all …]
Dmt8186-misc-control.c79 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_sgen_get() local
81 ucontrol->value.integer.value[0] = afe_priv->sgen_mode; in mt8186_sgen_get()
91 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_sgen_set() local
105 if (mode == afe_priv->sgen_mode) in mt8186_sgen_set()
123 afe_priv->sgen_mode = mode; in mt8186_sgen_set()
133 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_sgen_rate_get() local
135 ucontrol->value.integer.value[0] = afe_priv->sgen_rate; in mt8186_sgen_rate_get()
145 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_sgen_rate_set() local
156 if (rate == afe_priv->sgen_rate) in mt8186_sgen_rate_set()
167 afe_priv->sgen_rate = rate; in mt8186_sgen_rate_set()
[all …]
Dmt8186-dai-adda.c75 struct mt8186_afe_private *afe_priv = afe->platform_priv; in get_adda_priv_by_name() local
83 return afe_priv->dai_priv[dai_id]; in get_adda_priv_by_name()
247 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() local
248 int mtkaif_dmic = afe_priv->mtkaif_dmic; in mtk_adda_ul_event()
288 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_adda_pad_top_event() local
292 if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2) in mtk_adda_pad_top_event()
310 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_adda_mtkaif_cfg_event() local
316 if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2) { in mtk_adda_mtkaif_cfg_event()
325 if (afe_priv->mtkaif_chosen_phase[0] < 0 && in mtk_adda_mtkaif_cfg_event()
326 afe_priv->mtkaif_chosen_phase[1] < 0) { in mtk_adda_mtkaif_cfg_event()
[all …]
Dmt8186-dai-tdm.c105 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_en_event() local
107 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_en_event()
132 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_mck_en_event() local
134 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_mck_en_event()
204 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_afe_tdm_mclk_connect() local
206 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_afe_tdm_mclk_connect()
217 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_afe_tdm_mclk_apll_connect() local
219 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_afe_tdm_mclk_apll_connect()
234 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_afe_tdm_hd_connect() local
236 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_afe_tdm_hd_connect()
[all …]
Dmt8186-audsys-clk.c90 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_audsys_clk_unregister() local
95 if (!afe_priv) in mt8186_audsys_clk_unregister()
99 cl = afe_priv->lookup[i]; in mt8186_audsys_clk_unregister()
112 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_audsys_clk_register() local
117 afe_priv->lookup = devm_kcalloc(afe->dev, CLK_AUD_NR_CLK, in mt8186_audsys_clk_register()
118 sizeof(*afe_priv->lookup), in mt8186_audsys_clk_register()
121 if (!afe_priv->lookup) in mt8186_audsys_clk_register()
147 afe_priv->lookup[i] = cl; in mt8186_audsys_clk_register()
Dmt8186-dai-src.c173 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_set_src_1_param() local
174 struct mtk_afe_src_priv *src_priv = afe_priv->dai_priv[id]; in mtk_set_src_1_param()
243 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_set_src_2_param() local
244 struct mtk_afe_src_priv *src_priv = afe_priv->dai_priv[id]; in mtk_set_src_2_param()
320 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_hw_src_event() local
330 src_priv = afe_priv->dai_priv[id]; in mtk_hw_src_event()
487 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_afe_src_en_connect() local
491 src_priv = afe_priv->dai_priv[MT8186_DAI_SRC_1]; in mtk_afe_src_en_connect()
493 src_priv = afe_priv->dai_priv[MT8186_DAI_SRC_2]; in mtk_afe_src_en_connect()
552 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_dai_src_hw_params() local
[all …]
Dmt8186-dai-pcm.c220 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_dai_pcm_hw_params() local
222 struct mtk_afe_pcm_priv *pcm_priv = afe_priv->dai_priv[pcm_id]; in mtk_dai_pcm_hw_params()
287 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mtk_dai_pcm_set_fmt() local
288 struct mtk_afe_pcm_priv *pcm_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_pcm_set_fmt()
393 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_dai_pcm_register() local
415 afe_priv->dai_priv[MT8186_DAI_PCM] = pcm_priv; in mt8186_dai_pcm_register()
Dmt8186-afe-pcm.c87 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_fe_shutdown() local
93 afe_priv->irq_cnt[id] = 0; in mt8186_fe_shutdown()
94 afe_priv->xrun_assert[id] = 0; in mt8186_fe_shutdown()
159 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_fe_trigger() local
192 if (afe_priv->irq_cnt[id] > 0) in mt8186_fe_trigger()
193 counter = afe_priv->irq_cnt[id]; in mt8186_fe_trigger()
221 if (afe_priv->xrun_assert[id] > 0) { in mt8186_fe_trigger()
568 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_irq_cnt1_get() local
571 afe_priv->irq_cnt[MT8186_PRIMARY_MEMIF]; in mt8186_irq_cnt1_get()
581 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_irq_cnt1_set() local
[all …]
/sound/soc/mediatek/mt8183/
Dmt8183-afe-clk.c94 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_init_clock() local
97 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt8183_init_clock()
99 if (!afe_priv->clk) in mt8183_init_clock()
103 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt8183_init_clock()
104 if (IS_ERR(afe_priv->clk[i])) { in mt8183_init_clock()
107 PTR_ERR(afe_priv->clk[i])); in mt8183_init_clock()
108 return PTR_ERR(afe_priv->clk[i]); in mt8183_init_clock()
117 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_afe_enable_clock() local
120 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUDIO]); in mt8183_afe_enable_clock()
127 ret = clk_prepare_enable(afe_priv->clk[CLK_MUX_AUDIO]); in mt8183_afe_enable_clock()
[all …]
Dmt8183-dai-adda.c148 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() local
156 if (afe_priv->mtkaif_dmic) { in mtk_adda_ul_event()
202 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_adda_dmic_get() local
204 ucontrol->value.integer.value[0] = afe_priv->mtkaif_dmic; in mt8183_adda_dmic_get()
214 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_adda_dmic_set() local
220 afe_priv->mtkaif_dmic = ucontrol->value.integer.value[0]; in mt8183_adda_dmic_set()
223 __func__, kcontrol->id.name, afe_priv->mtkaif_dmic); in mt8183_adda_dmic_set()
303 struct mt8183_afe_private *afe_priv = afe->platform_priv; in set_mtkaif_rx() local
307 switch (afe_priv->mtkaif_protocol) { in set_mtkaif_rx()
315 if (afe_priv->mtkaif_phase_cycle[0] >= in set_mtkaif_rx()
[all …]
Dmt8183-dai-tdm.c252 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_bck_en_event() local
253 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[MT8183_DAI_TDM]; in mtk_tdm_bck_en_event()
278 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_mck_en_event() local
279 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[MT8183_DAI_TDM]; in mtk_tdm_mck_en_event()
336 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_afe_tdm_apll_connect() local
337 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[MT8183_DAI_TDM]; in mtk_afe_tdm_apll_connect()
469 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_dai_tdm_hw_params() local
471 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[tdm_id]; in mtk_dai_tdm_hw_params()
619 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_dai_tdm_set_sysclk() local
620 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_tdm_set_sysclk()
[all …]
/sound/soc/mediatek/mt8192/
Dmt8192-afe-clk.c66 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mt8192_set_audio_int_bus_parent() local
69 ret = clk_set_parent(afe_priv->clk[CLK_MUX_AUDIOINTBUS], in mt8192_set_audio_int_bus_parent()
70 afe_priv->clk[clk_id]); in mt8192_set_audio_int_bus_parent()
82 struct mt8192_afe_private *afe_priv = afe->platform_priv; in apll1_mux_setting() local
86 ret = clk_prepare_enable(afe_priv->clk[CLK_TOP_MUX_AUD_1]); in apll1_mux_setting()
92 ret = clk_set_parent(afe_priv->clk[CLK_TOP_MUX_AUD_1], in apll1_mux_setting()
93 afe_priv->clk[CLK_TOP_APLL1_CK]); in apll1_mux_setting()
102 ret = clk_prepare_enable(afe_priv->clk[CLK_TOP_MUX_AUD_ENG1]); in apll1_mux_setting()
108 ret = clk_set_parent(afe_priv->clk[CLK_TOP_MUX_AUD_ENG1], in apll1_mux_setting()
109 afe_priv->clk[CLK_TOP_APLL1_D4]); in apll1_mux_setting()
[all …]
Dmt8192-dai-adda.c303 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() local
304 int mtkaif_dmic = afe_priv->mtkaif_dmic; in mtk_adda_ul_event()
344 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ch34_ul_event() local
345 int mtkaif_dmic = afe_priv->mtkaif_dmic_ch34; in mtk_adda_ch34_ul_event()
346 int mtkaif_adda6_only = afe_priv->mtkaif_adda6_only; in mtk_adda_ch34_ul_event()
389 afe_priv->mtkaif_dmic_ch34 = 0; in mtk_adda_ch34_ul_event()
410 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_adda_pad_top_event() local
414 if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2) in mtk_adda_pad_top_event()
432 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_adda_mtkaif_cfg_event() local
438 if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2) { in mtk_adda_mtkaif_cfg_event()
[all …]
Dmt8192-mt6359-rt1015-rt5682.c154 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mt8192_mt6359_mtkaif_calibration() local
179 regmap_update_bits(afe_priv->topckgen, in mt8192_mt6359_mtkaif_calibration()
183 afe_priv->mtkaif_calibration_num_phase = 42; /* mt6359: 0 ~ 42 */ in mt8192_mt6359_mtkaif_calibration()
184 afe_priv->mtkaif_chosen_phase[0] = -1; in mt8192_mt6359_mtkaif_calibration()
185 afe_priv->mtkaif_chosen_phase[1] = -1; in mt8192_mt6359_mtkaif_calibration()
186 afe_priv->mtkaif_chosen_phase[2] = -1; in mt8192_mt6359_mtkaif_calibration()
189 phase <= afe_priv->mtkaif_calibration_num_phase && in mt8192_mt6359_mtkaif_calibration()
195 regmap_update_bits(afe_priv->topckgen, in mt8192_mt6359_mtkaif_calibration()
208 regmap_read(afe_priv->topckgen, in mt8192_mt6359_mtkaif_calibration()
240 afe_priv->mtkaif_chosen_phase[0] < 0) { in mt8192_mt6359_mtkaif_calibration()
[all …]
Dmt8192-dai-tdm.c250 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_en_event() local
252 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_en_event()
282 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_bck_en_event() local
284 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_bck_en_event()
314 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_mck_en_event() local
316 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_mck_en_event()
383 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_afe_tdm_apll_connect() local
385 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_afe_tdm_apll_connect()
518 struct mt8192_afe_private *afe_priv = afe->platform_priv; in mtk_dai_tdm_hw_params() local
520 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[tdm_id]; in mtk_dai_tdm_hw_params()
[all …]
/sound/soc/mediatek/mt6797/
Dmt6797-afe-clk.c36 struct mt6797_afe_private *afe_priv = afe->platform_priv; in mt6797_init_clock() local
39 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt6797_init_clock()
41 if (!afe_priv->clk) in mt6797_init_clock()
45 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt6797_init_clock()
46 if (IS_ERR(afe_priv->clk[i])) { in mt6797_init_clock()
49 PTR_ERR(afe_priv->clk[i])); in mt6797_init_clock()
50 return PTR_ERR(afe_priv->clk[i]); in mt6797_init_clock()
59 struct mt6797_afe_private *afe_priv = afe->platform_priv; in mt6797_afe_enable_clock() local
62 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUD]); in mt6797_afe_enable_clock()
69 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUD_26M]); in mt6797_afe_enable_clock()
[all …]
/sound/soc/mediatek/mt2701/
Dmt2701-afe-clock-ctrl.c27 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()
[all …]
Dmt2701-afe-pcm.c86 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_dai_num_to_i2s() local
89 if (val < 0 || val >= afe_priv->soc->i2s_num) { in mt2701_dai_num_to_i2s()
112 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_startup() local
114 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_startup()
147 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_shutdown() local
150 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_shutdown()
155 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_shutdown()
178 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_i2s_path_enable() local
202 if (afe_priv->soc->has_one_heart_mode) { in mt2701_i2s_path_enable()
235 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_prepare() local
[all …]
/sound/soc/mediatek/mt8195/
Dmt8195-afe-clk.c243 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_afe_enable_tuner_clk() local
247 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL]); in mt8195_afe_enable_tuner_clk()
248 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL1_TUNER]); in mt8195_afe_enable_tuner_clk()
251 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2]); in mt8195_afe_enable_tuner_clk()
252 mt8195_afe_enable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2_TUNER]); in mt8195_afe_enable_tuner_clk()
264 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_afe_disable_tuner_clk() local
268 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL1_TUNER]); in mt8195_afe_disable_tuner_clk()
269 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL]); in mt8195_afe_disable_tuner_clk()
272 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2_TUNER]); in mt8195_afe_disable_tuner_clk()
273 mt8195_afe_disable_clk(afe, afe_priv->clk[MT8195_CLK_AUD_APLL2]); in mt8195_afe_disable_tuner_clk()
[all …]
Dmt8195-dai-etdm.c238 struct mt8195_afe_private *afe_priv = afe->platform_priv; in is_cowork_mode() local
239 struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; in is_cowork_mode()
266 struct mt8195_afe_private *afe_priv = afe->platform_priv; in get_etdm_cowork_master_id() local
267 struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai->id]; in get_etdm_cowork_master_id()
1278 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_afe_enable_etdm() local
1279 struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; in mt8195_afe_enable_etdm()
1282 spin_lock_irqsave(&afe_priv->afe_ctrl_lock, flags); in mt8195_afe_enable_etdm()
1293 spin_unlock_irqrestore(&afe_priv->afe_ctrl_lock, flags); in mt8195_afe_enable_etdm()
1301 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_afe_disable_etdm() local
1302 struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; in mt8195_afe_disable_etdm()
[all …]
Dmt8195-dai-adda.c124 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_adda_mtkaif_init() local
125 struct mtkaif_param *param = &afe_priv->mtkaif_params; in mt8195_adda_mtkaif_init()
269 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() local
270 struct mtkaif_param *param = &afe_priv->mtkaif_params; in mtk_adda_ul_event()
296 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mtk_adda6_ul_event() local
297 struct mtkaif_param *param = &afe_priv->mtkaif_params; in mtk_adda6_ul_event()
332 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mtk_audio_hires_event() local
333 struct clk *clk = afe_priv->clk[MT8195_CLK_TOP_AUDIO_H_SEL]; in mtk_audio_hires_event()
341 clk_parent = afe_priv->clk[MT8195_CLK_TOP_APLL1]; in mtk_audio_hires_event()
344 clk_parent = afe_priv->clk[MT8195_CLK_XTAL_26M]; in mtk_audio_hires_event()
[all …]
Dmt8195-audsys-clk.c154 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_audsys_clk_unregister() local
159 if (!afe_priv) in mt8195_audsys_clk_unregister()
163 cl = afe_priv->lookup[i]; in mt8195_audsys_clk_unregister()
176 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_audsys_clk_register() local
181 afe_priv->lookup = devm_kcalloc(afe->dev, CLK_AUD_NR_CLK, in mt8195_audsys_clk_register()
182 sizeof(*afe_priv->lookup), in mt8195_audsys_clk_register()
185 if (!afe_priv->lookup) in mt8195_audsys_clk_register()
211 afe_priv->lookup[i] = cl; in mt8195_audsys_clk_register()
Dmt8195-dai-pcm.c124 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mtk_dai_pcm_configure() local
125 struct mtk_dai_pcmif_priv *pcmif_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_pcm_configure()
229 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mtk_dai_pcm_set_fmt() local
230 struct mtk_dai_pcmif_priv *pcmif_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_pcm_set_fmt()
321 struct mt8195_afe_private *afe_priv = afe->platform_priv; in init_pcmif_priv_data() local
329 afe_priv->dai_priv[MT8195_AFE_IO_PCM] = pcmif_priv; in init_pcmif_priv_data()
Dmt8195-afe-pcm.c286 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_afe_paired_memif_clk_prepare() local
295 mt8195_afe_prepare_clk(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_prepare()
297 mt8195_afe_prepare_clk(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_prepare()
300 mt8195_afe_unprepare_clk(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_prepare()
302 mt8195_afe_unprepare_clk(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_prepare()
315 struct mt8195_afe_private *afe_priv = afe->platform_priv; in mt8195_afe_paired_memif_clk_enable() local
325 mt8195_afe_enable_clk_atomic(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_enable()
329 mt8195_afe_enable_clk_atomic(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_enable()
333 mt8195_afe_disable_clk_atomic(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_enable()
336 mt8195_afe_disable_clk_atomic(afe, afe_priv->clk[clk_id]); in mt8195_afe_paired_memif_clk_enable()
[all …]
/sound/soc/mediatek/mt8173/
Dmt8173-afe-pcm.c325 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
[all …]

12