Home
last modified time | relevance | path

Searched refs:mtk_base_afe (Results 1 – 25 of 76) sorted by relevance

1234

/linux-6.3-rc2/sound/soc/mediatek/mt8186/
A Dmt8186-afe-clk.h81 struct mtk_base_afe;
83 int mt8186_init_clock(struct mtk_base_afe *afe);
85 int mt8186_afe_enable_cgs(struct mtk_base_afe *afe);
86 void mt8186_afe_disable_cgs(struct mtk_base_afe *afe);
87 int mt8186_afe_enable_clock(struct mtk_base_afe *afe);
89 int mt8186_afe_suspend_clock(struct mtk_base_afe *afe);
90 int mt8186_afe_resume_clock(struct mtk_base_afe *afe);
92 int mt8186_apll1_enable(struct mtk_base_afe *afe);
93 void mt8186_apll1_disable(struct mtk_base_afe *afe);
95 int mt8186_apll2_enable(struct mtk_base_afe *afe);
[all …]
A Dmt8186-afe-common.h175 int mt8186_dai_adda_register(struct mtk_base_afe *afe);
176 int mt8186_dai_i2s_register(struct mtk_base_afe *afe);
177 int mt8186_dai_tdm_register(struct mtk_base_afe *afe);
178 int mt8186_dai_hw_gain_register(struct mtk_base_afe *afe);
179 int mt8186_dai_src_register(struct mtk_base_afe *afe);
180 int mt8186_dai_pcm_register(struct mtk_base_afe *afe);
181 int mt8186_dai_hostless_register(struct mtk_base_afe *afe);
192 int mt8186_dai_i2s_set_share(struct mtk_base_afe *afe, const char *main_i2s_name,
195 int mt8186_dai_set_priv(struct mtk_base_afe *afe, int id,
A Dmt8186-afe-clk.c215 int mt8186_afe_enable_cgs(struct mtk_base_afe *afe) in mt8186_afe_enable_cgs()
233 void mt8186_afe_disable_cgs(struct mtk_base_afe *afe) in mt8186_afe_disable_cgs()
242 int mt8186_afe_enable_clock(struct mtk_base_afe *afe) in mt8186_afe_enable_clock()
334 int mt8186_afe_suspend_clock(struct mtk_base_afe *afe) in mt8186_afe_suspend_clock()
361 int mt8186_afe_resume_clock(struct mtk_base_afe *afe) in mt8186_afe_resume_clock()
389 int mt8186_apll1_enable(struct mtk_base_afe *afe) in mt8186_apll1_enable()
427 void mt8186_apll1_disable(struct mtk_base_afe *afe) in mt8186_apll1_disable()
442 int mt8186_apll2_enable(struct mtk_base_afe *afe) in mt8186_apll2_enable()
480 void mt8186_apll2_disable(struct mtk_base_afe *afe) in mt8186_apll2_disable()
598 int mt8186_init_clock(struct mtk_base_afe *afe) in mt8186_init_clock()
[all …]
A Dmt8186-dai-tdm.c104 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_tdm_en_event()
131 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_tdm_mck_en_event()
203 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_tdm_mclk_connect()
216 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_tdm_mclk_apll_connect()
233 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_tdm_hd_connect()
335 static int mtk_dai_tdm_cal_mclk(struct mtk_base_afe *afe, in mtk_dai_tdm_cal_mclk()
367 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_tdm_hw_params()
464 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); in mtk_dai_tdm_set_sysclk()
480 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); in mtk_dai_tdm_set_fmt()
556 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); in mtk_dai_tdm_set_tdm_slot()
[all …]
A Dmt8186-dai-adda.c86 static unsigned int adda_dl_rate_transform(struct mtk_base_afe *afe, in adda_dl_rate_transform()
120 static unsigned int adda_ul_rate_transform(struct mtk_base_afe *afe, in adda_ul_rate_transform()
208 static int mtk_adda_ul_src_dmic(struct mtk_base_afe *afe, int id) in mtk_adda_ul_src_dmic()
246 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event()
287 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_pad_top_event()
309 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_mtkaif_cfg_event()
389 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_dl_event()
414 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_adda_dmic_get()
426 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_adda_dmic_set()
645 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
[all …]
A Dmt8186-misc-control.c78 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_sgen_get()
90 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_sgen_set()
132 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_sgen_rate_get()
144 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_sgen_rate_set()
176 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_sgen_amplitude_get()
187 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_sgen_amplitude_set()
/linux-6.3-rc2/sound/soc/mediatek/mt8183/
A Dmt8183-afe-clk.h20 struct mtk_base_afe;
22 int mt8183_init_clock(struct mtk_base_afe *afe);
23 int mt8183_afe_enable_clock(struct mtk_base_afe *afe);
24 int mt8183_afe_disable_clock(struct mtk_base_afe *afe);
26 int mt8183_apll1_enable(struct mtk_base_afe *afe);
27 void mt8183_apll1_disable(struct mtk_base_afe *afe);
29 int mt8183_apll2_enable(struct mtk_base_afe *afe);
30 void mt8183_apll2_disable(struct mtk_base_afe *afe);
32 int mt8183_get_apll_rate(struct mtk_base_afe *afe, int apll);
33 int mt8183_get_apll_by_rate(struct mtk_base_afe *afe, int rate);
[all …]
A Dmt8183-afe-common.h102 int mt8183_dai_i2s_set_share(struct mtk_base_afe *afe, const char *main_i2s_name,
106 int mt8183_dai_adda_register(struct mtk_base_afe *afe);
107 int mt8183_dai_pcm_register(struct mtk_base_afe *afe);
108 int mt8183_dai_i2s_register(struct mtk_base_afe *afe);
109 int mt8183_dai_tdm_register(struct mtk_base_afe *afe);
110 int mt8183_dai_hostless_register(struct mtk_base_afe *afe);
A Dmt8183-afe-clk.c92 int mt8183_init_clock(struct mtk_base_afe *afe) in mt8183_init_clock()
115 int mt8183_afe_enable_clock(struct mtk_base_afe *afe) in mt8183_afe_enable_clock()
214 int mt8183_afe_disable_clock(struct mtk_base_afe *afe) in mt8183_afe_disable_clock()
231 static int apll1_mux_setting(struct mtk_base_afe *afe, bool enable) in apll1_mux_setting()
379 int mt8183_apll1_enable(struct mtk_base_afe *afe) in mt8183_apll1_enable()
417 void mt8183_apll1_disable(struct mtk_base_afe *afe) in mt8183_apll1_disable()
433 int mt8183_apll2_enable(struct mtk_base_afe *afe) in mt8183_apll2_enable()
471 void mt8183_apll2_disable(struct mtk_base_afe *afe) in mt8183_apll2_disable()
487 int mt8183_get_apll_rate(struct mtk_base_afe *afe, int apll) in mt8183_get_apll_rate()
492 int mt8183_get_apll_by_rate(struct mtk_base_afe *afe, int rate) in mt8183_get_apll_by_rate()
[all …]
A Dmt8183-dai-adda.c50 static unsigned int adda_dl_rate_transform(struct mtk_base_afe *afe, in adda_dl_rate_transform()
83 static unsigned int adda_ul_rate_transform(struct mtk_base_afe *afe, in adda_ul_rate_transform()
147 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event()
201 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8183_adda_dmic_get()
213 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8183_adda_dmic_set()
301 static int set_mtkaif_rx(struct mtk_base_afe *afe) in set_mtkaif_rx()
357 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
490 int mt8183_dai_adda_register(struct mtk_base_afe *afe) in mt8183_dai_adda_register()
/linux-6.3-rc2/sound/soc/mediatek/mt8195/
A Dmt8195-afe-clk.h98 struct mtk_base_afe;
103 int mt8195_afe_init_clock(struct mtk_base_afe *afe);
104 void mt8195_afe_deinit_clock(struct mtk_base_afe *afe);
105 int mt8195_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk);
106 void mt8195_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk);
107 int mt8195_afe_prepare_clk(struct mtk_base_afe *afe, struct clk *clk);
111 int mt8195_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk,
115 int mt8195_afe_enable_main_clock(struct mtk_base_afe *afe);
116 int mt8195_afe_disable_main_clock(struct mtk_base_afe *afe);
117 int mt8195_afe_enable_reg_rw_clk(struct mtk_base_afe *afe);
[all …]
A Dmt8195-afe-clk.c217 static int mt8195_afe_setup_apll_tuner(struct mtk_base_afe *afe, in mt8195_afe_setup_apll_tuner()
240 static int mt8195_afe_enable_tuner_clk(struct mtk_base_afe *afe, in mt8195_afe_enable_tuner_clk()
261 static int mt8195_afe_disable_tuner_clk(struct mtk_base_afe *afe, in mt8195_afe_disable_tuner_clk()
377 int mt8195_afe_init_clock(struct mtk_base_afe *afe) in mt8195_afe_init_clock()
413 void mt8195_afe_deinit_clock(struct mtk_base_afe *afe) in mt8195_afe_deinit_clock()
599 int mt8195_afe_enable_reg_rw_clk(struct mtk_base_afe *afe) in mt8195_afe_enable_reg_rw_clk()
620 int mt8195_afe_disable_reg_rw_clk(struct mtk_base_afe *afe) in mt8195_afe_disable_reg_rw_clk()
641 static int mt8195_afe_enable_afe_on(struct mtk_base_afe *afe) in mt8195_afe_enable_afe_on()
647 static int mt8195_afe_disable_afe_on(struct mtk_base_afe *afe) in mt8195_afe_disable_afe_on()
699 int mt8195_afe_enable_main_clock(struct mtk_base_afe *afe) in mt8195_afe_enable_main_clock()
[all …]
A Dmt8195-dai-adda.c122 static int mt8195_adda_mtkaif_init(struct mtk_base_afe *afe) in mt8195_adda_mtkaif_init()
197 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_mtkaif_cfg_event()
218 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_dl_event()
268 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event()
295 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda6_ul_event()
331 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_audio_hires_event()
639 static int mtk_dai_da_configure(struct mtk_base_afe *afe, in mtk_dai_da_configure()
677 static int mtk_dai_ad_configure(struct mtk_base_afe *afe, in mtk_dai_ad_configure()
705 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
787 static int init_adda_priv_data(struct mtk_base_afe *afe) in init_adda_priv_data()
[all …]
/linux-6.3-rc2/sound/soc/mediatek/mt2701/
A Dmt2701-afe-clock-ctrl.h13 struct mtk_base_afe;
16 int mt2701_init_clock(struct mtk_base_afe *afe);
17 int mt2701_afe_enable_clock(struct mtk_base_afe *afe);
18 int mt2701_afe_disable_clock(struct mtk_base_afe *afe);
20 int mt2701_afe_enable_i2s(struct mtk_base_afe *afe,
23 void mt2701_afe_disable_i2s(struct mtk_base_afe *afe,
26 int mt2701_afe_enable_mclk(struct mtk_base_afe *afe, int id);
27 void mt2701_afe_disable_mclk(struct mtk_base_afe *afe, int id);
29 int mt2701_enable_btmrg_clk(struct mtk_base_afe *afe);
30 void mt2701_disable_btmrg_clk(struct mtk_base_afe *afe);
[all …]
A Dmt2701-afe-clock-ctrl.c25 int mt2701_init_clock(struct mtk_base_afe *afe) in mt2701_init_clock()
101 int mt2701_afe_enable_i2s(struct mtk_base_afe *afe, in mt2701_afe_enable_i2s()
127 void mt2701_afe_disable_i2s(struct mtk_base_afe *afe, in mt2701_afe_disable_i2s()
135 int mt2701_afe_enable_mclk(struct mtk_base_afe *afe, int id) in mt2701_afe_enable_mclk()
143 void mt2701_afe_disable_mclk(struct mtk_base_afe *afe, int id) in mt2701_afe_disable_mclk()
151 int mt2701_enable_btmrg_clk(struct mtk_base_afe *afe) in mt2701_enable_btmrg_clk()
158 void mt2701_disable_btmrg_clk(struct mtk_base_afe *afe) in mt2701_disable_btmrg_clk()
165 static int mt2701_afe_enable_audsys(struct mtk_base_afe *afe) in mt2701_afe_enable_audsys()
220 static void mt2701_afe_disable_audsys(struct mtk_base_afe *afe) in mt2701_afe_disable_audsys()
233 int mt2701_afe_enable_clock(struct mtk_base_afe *afe) in mt2701_afe_enable_clock()
[all …]
/linux-6.3-rc2/sound/soc/mediatek/mt8188/
A Dmt8188-afe-clk.h97 struct mtk_base_afe;
100 int mt8188_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
102 int mt8188_afe_init_clock(struct mtk_base_afe *afe);
104 int mt8188_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk);
105 void mt8188_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk);
106 int mt8188_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk,
108 int mt8188_afe_set_clk_parent(struct mtk_base_afe *afe, struct clk *clk,
110 int mt8188_afe_enable_main_clock(struct mtk_base_afe *afe);
111 int mt8188_afe_disable_main_clock(struct mtk_base_afe *afe);
112 int mt8188_afe_enable_reg_rw_clk(struct mtk_base_afe *afe);
[all …]
A Dmt8188-afe-clk.c246 static int mt8188_afe_enable_tuner_clk(struct mtk_base_afe *afe, in mt8188_afe_enable_tuner_clk()
267 static int mt8188_afe_disable_tuner_clk(struct mtk_base_afe *afe, in mt8188_afe_disable_tuner_clk()
381 int mt8188_afe_init_clock(struct mtk_base_afe *afe) in mt8188_afe_init_clock()
423 struct mtk_base_afe *afe = priv; in mt8188_afe_deinit_clock()
561 int mt8188_afe_enable_reg_rw_clk(struct mtk_base_afe *afe) in mt8188_afe_enable_reg_rw_clk()
582 int mt8188_afe_disable_reg_rw_clk(struct mtk_base_afe *afe) in mt8188_afe_disable_reg_rw_clk()
596 static int mt8188_afe_enable_afe_on(struct mtk_base_afe *afe) in mt8188_afe_enable_afe_on()
602 static int mt8188_afe_disable_afe_on(struct mtk_base_afe *afe) in mt8188_afe_disable_afe_on()
608 static int mt8188_afe_enable_timing_sys(struct mtk_base_afe *afe) in mt8188_afe_enable_timing_sys()
636 int mt8188_afe_enable_main_clock(struct mtk_base_afe *afe) in mt8188_afe_enable_main_clock()
[all …]
A Dmt8188-dai-adda.c117 static int mt8188_adda_mtkaif_init(struct mtk_base_afe *afe) in mt8188_adda_mtkaif_init()
165 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_mtkaif_cfg_event()
186 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_dl_event()
223 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event()
250 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_audio_hires_event()
278 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_adc_hires_connect()
479 static int mtk_dai_da_configure(struct mtk_base_afe *afe, in mtk_dai_da_configure()
514 static int mtk_dai_ad_configure(struct mtk_base_afe *afe, in mtk_dai_ad_configure()
533 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
596 static int init_adda_priv_data(struct mtk_base_afe *afe) in init_adda_priv_data()
[all …]
/linux-6.3-rc2/sound/soc/mediatek/mt8192/
A Dmt8192-afe-clk.h221 struct mtk_base_afe;
223 int mt8192_init_clock(struct mtk_base_afe *afe);
224 int mt8192_afe_enable_clock(struct mtk_base_afe *afe);
225 void mt8192_afe_disable_clock(struct mtk_base_afe *afe);
227 int mt8192_apll1_enable(struct mtk_base_afe *afe);
228 void mt8192_apll1_disable(struct mtk_base_afe *afe);
230 int mt8192_apll2_enable(struct mtk_base_afe *afe);
231 void mt8192_apll2_disable(struct mtk_base_afe *afe);
233 int mt8192_get_apll_rate(struct mtk_base_afe *afe, int apll);
239 void mt8192_mck_disable(struct mtk_base_afe *afe, int mck_id);
[all …]
A Dmt8192-afe-common.h155 int mt8192_dai_adda_register(struct mtk_base_afe *afe);
156 int mt8192_dai_i2s_register(struct mtk_base_afe *afe);
157 int mt8192_dai_hw_gain_register(struct mtk_base_afe *afe);
158 int mt8192_dai_src_register(struct mtk_base_afe *afe);
159 int mt8192_dai_pcm_register(struct mtk_base_afe *afe);
160 int mt8192_dai_tdm_register(struct mtk_base_afe *afe);
162 int mt8192_dai_i2s_set_share(struct mtk_base_afe *afe, const char *main_i2s_name,
170 int mt8192_dai_set_priv(struct mtk_base_afe *afe, int id,
A Dmt8192-afe-clk.c63 int mt8192_set_audio_int_bus_parent(struct mtk_base_afe *afe, in mt8192_set_audio_int_bus_parent()
204 int mt8192_afe_enable_clock(struct mtk_base_afe *afe) in mt8192_afe_enable_clock()
275 void mt8192_afe_disable_clock(struct mtk_base_afe *afe) in mt8192_afe_disable_clock()
289 int mt8192_apll1_enable(struct mtk_base_afe *afe) in mt8192_apll1_enable()
323 void mt8192_apll1_disable(struct mtk_base_afe *afe) in mt8192_apll1_disable()
339 int mt8192_apll2_enable(struct mtk_base_afe *afe) in mt8192_apll2_enable()
373 void mt8192_apll2_disable(struct mtk_base_afe *afe) in mt8192_apll2_disable()
389 int mt8192_get_apll_rate(struct mtk_base_afe *afe, int apll) in mt8192_get_apll_rate()
394 int mt8192_get_apll_by_rate(struct mtk_base_afe *afe, int rate) in mt8192_get_apll_by_rate()
612 void mt8192_mck_disable(struct mtk_base_afe *afe, int mck_id) in mt8192_mck_disable()
[all …]
/linux-6.3-rc2/sound/soc/mediatek/common/
A Dmtk-afe-fe-dai.h13 struct mtk_base_afe;
32 int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe);
33 int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id);
37 int mtk_memif_set_enable(struct mtk_base_afe *afe, int id);
38 int mtk_memif_set_disable(struct mtk_base_afe *afe, int id);
39 int mtk_memif_set_addr(struct mtk_base_afe *afe, int id,
43 int mtk_memif_set_channel(struct mtk_base_afe *afe,
45 int mtk_memif_set_rate(struct mtk_base_afe *afe,
49 int mtk_memif_set_format(struct mtk_base_afe *afe,
51 int mtk_memif_set_pbuf_size(struct mtk_base_afe *afe,
A Dmtk-afe-fe-dai.c41 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_startup()
102 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_shutdown()
124 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_hw_params()
187 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_hw_free()
201 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_trigger()
291 int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe) in mtk_dynamic_irq_acquire()
401 int mtk_memif_set_addr(struct mtk_base_afe *afe, int id, in mtk_memif_set_addr()
456 int mtk_memif_set_channel(struct mtk_base_afe *afe, in mtk_memif_set_channel()
503 int mtk_memif_set_rate(struct mtk_base_afe *afe, in mtk_memif_set_rate()
548 int mtk_memif_set_format(struct mtk_base_afe *afe, in mtk_memif_set_format()
[all …]
/linux-6.3-rc2/sound/soc/mediatek/mt6797/
A Dmt6797-afe-clk.h12 struct mtk_base_afe;
14 int mt6797_init_clock(struct mtk_base_afe *afe);
15 int mt6797_afe_enable_clock(struct mtk_base_afe *afe);
16 int mt6797_afe_disable_clock(struct mtk_base_afe *afe);
A Dmt6797-afe-common.h56 int mt6797_dai_adda_register(struct mtk_base_afe *afe);
57 int mt6797_dai_pcm_register(struct mtk_base_afe *afe);
58 int mt6797_dai_hostless_register(struct mtk_base_afe *afe);

Completed in 44 milliseconds

1234