Home
last modified time | relevance | path

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

1234

/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-afe-clk.h81 struct mtk_base_afe;
83 int mt8186_init_clock(struct mtk_base_afe *afe);
84 int mt8186_afe_enable_cgs(struct mtk_base_afe *afe);
85 void mt8186_afe_disable_cgs(struct mtk_base_afe *afe);
86 int mt8186_afe_enable_clock(struct mtk_base_afe *afe);
88 int mt8186_afe_suspend_clock(struct mtk_base_afe *afe);
89 int mt8186_afe_resume_clock(struct mtk_base_afe *afe);
91 int mt8186_apll1_enable(struct mtk_base_afe *afe);
92 void mt8186_apll1_disable(struct mtk_base_afe *afe);
94 int mt8186_apll2_enable(struct mtk_base_afe *afe);
[all …]
H 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,
H A Dmt8186-afe-clk.c213 int mt8186_afe_enable_cgs(struct mtk_base_afe *afe) in mt8186_afe_enable_cgs()
231 void mt8186_afe_disable_cgs(struct mtk_base_afe *afe) in mt8186_afe_disable_cgs()
240 int mt8186_afe_enable_clock(struct mtk_base_afe *afe) in mt8186_afe_enable_clock()
320 void mt8186_afe_disable_clock(struct mtk_base_afe *afe) in mt8186_afe_disable_clock()
332 int mt8186_afe_suspend_clock(struct mtk_base_afe *afe) in mt8186_afe_suspend_clock()
359 int mt8186_afe_resume_clock(struct mtk_base_afe *afe) in mt8186_afe_resume_clock()
387 int mt8186_apll1_enable(struct mtk_base_afe *afe) in mt8186_apll1_enable()
425 void mt8186_apll1_disable(struct mtk_base_afe *afe) in mt8186_apll1_disable()
440 int mt8186_apll2_enable(struct mtk_base_afe *afe) in mt8186_apll2_enable()
478 void mt8186_apll2_disable(struct mtk_base_afe *afe) in mt8186_apll2_disable()
[all …]
H 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 …]
H 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 …]
H 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()
/openbmc/linux/sound/soc/mediatek/mt8183/
H 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 …]
H 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);
H 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 …]
H 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()
/openbmc/linux/sound/soc/mediatek/mt8188/
H A Dmt8188-afe-clk.h106 struct mtk_base_afe;
111 int mt8188_get_apll_by_rate(struct mtk_base_afe *afe, int rate);
113 int mt8188_afe_init_clock(struct mtk_base_afe *afe);
120 int mt8188_apll1_enable(struct mtk_base_afe *afe);
121 int mt8188_apll1_disable(struct mtk_base_afe *afe);
122 int mt8188_apll2_enable(struct mtk_base_afe *afe);
123 int mt8188_apll2_disable(struct mtk_base_afe *afe);
124 int mt8188_afe_enable_main_clock(struct mtk_base_afe *afe);
125 int mt8188_afe_disable_main_clock(struct mtk_base_afe *afe);
126 int mt8188_afe_enable_reg_rw_clk(struct mtk_base_afe *afe);
[all …]
H A Dmt8188-afe-clk.c399 int mt8188_afe_init_clock(struct mtk_base_afe *afe) in mt8188_afe_init_clock()
572 int mt8188_afe_enable_reg_rw_clk(struct mtk_base_afe *afe) in mt8188_afe_enable_reg_rw_clk()
593 int mt8188_afe_disable_reg_rw_clk(struct mtk_base_afe *afe) in mt8188_afe_disable_reg_rw_clk()
619 static int mt8188_afe_enable_a1sys(struct mtk_base_afe *afe) in mt8188_afe_enable_a1sys()
640 static int mt8188_afe_enable_a2sys(struct mtk_base_afe *afe) in mt8188_afe_enable_a2sys()
661 int mt8188_apll1_enable(struct mtk_base_afe *afe) in mt8188_apll1_enable()
696 int mt8188_apll1_disable(struct mtk_base_afe *afe) in mt8188_apll1_disable()
709 int mt8188_apll2_enable(struct mtk_base_afe *afe) in mt8188_apll2_enable()
728 int mt8188_apll2_disable(struct mtk_base_afe *afe) in mt8188_apll2_disable()
735 int mt8188_afe_enable_main_clock(struct mtk_base_afe *afe) in mt8188_afe_enable_main_clock()
[all …]
H A Dmt8188-dai-adda.c115 static int mt8188_adda_mtkaif_init(struct mtk_base_afe *afe) in mt8188_adda_mtkaif_init()
163 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_mtkaif_cfg_event()
184 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_dl_event()
221 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event()
261 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_adda_hires_connect()
398 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8188_adda_dmic_get()
434 static int mtk_dai_da_configure(struct mtk_base_afe *afe, in mtk_dai_da_configure()
469 static int mtk_dai_ad_configure(struct mtk_base_afe *afe, in mtk_dai_ad_configure()
488 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
555 static int init_adda_priv_data(struct mtk_base_afe *afe) in init_adda_priv_data()
[all …]
/openbmc/linux/sound/soc/mediatek/mt2701/
H 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 …]
H 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 …]
/openbmc/linux/sound/soc/mediatek/mt8195/
H A Dmt8195-afe-clk.h98 struct mtk_base_afe;
101 int mt8195_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
103 int mt8195_afe_init_clock(struct mtk_base_afe *afe);
104 int mt8195_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk);
105 void mt8195_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk);
106 int mt8195_afe_prepare_clk(struct mtk_base_afe *afe, struct clk *clk);
110 int mt8195_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk,
114 int mt8195_afe_enable_main_clock(struct mtk_base_afe *afe);
115 int mt8195_afe_disable_main_clock(struct mtk_base_afe *afe);
116 int mt8195_afe_enable_reg_rw_clk(struct mtk_base_afe *afe);
[all …]
H 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()
282 static int mt8195_afe_enable_apll_tuner(struct mtk_base_afe *afe, in mt8195_afe_enable_apll_tuner()
377 int mt8195_afe_init_clock(struct mtk_base_afe *afe) in mt8195_afe_init_clock()
594 int mt8195_afe_enable_reg_rw_clk(struct mtk_base_afe *afe) in mt8195_afe_enable_reg_rw_clk()
615 int mt8195_afe_disable_reg_rw_clk(struct mtk_base_afe *afe) in mt8195_afe_disable_reg_rw_clk()
636 static int mt8195_afe_enable_afe_on(struct mtk_base_afe *afe) in mt8195_afe_enable_afe_on()
642 static int mt8195_afe_disable_afe_on(struct mtk_base_afe *afe) in mt8195_afe_disable_afe_on()
694 int mt8195_afe_enable_main_clock(struct mtk_base_afe *afe) in mt8195_afe_enable_main_clock()
[all …]
H 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()
792 static int init_adda_priv_data(struct mtk_base_afe *afe) in init_adda_priv_data()
[all …]
/openbmc/linux/sound/soc/mediatek/common/
H 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,
H 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 …]
/openbmc/linux/sound/soc/mediatek/mt8192/
H 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 …]
H 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,
H 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()
273 void mt8192_afe_disable_clock(struct mtk_base_afe *afe) in mt8192_afe_disable_clock()
285 int mt8192_apll1_enable(struct mtk_base_afe *afe) in mt8192_apll1_enable()
319 void mt8192_apll1_disable(struct mtk_base_afe *afe) in mt8192_apll1_disable()
335 int mt8192_apll2_enable(struct mtk_base_afe *afe) in mt8192_apll2_enable()
369 void mt8192_apll2_disable(struct mtk_base_afe *afe) in mt8192_apll2_disable()
385 int mt8192_get_apll_rate(struct mtk_base_afe *afe, int apll) in mt8192_get_apll_rate()
390 int mt8192_get_apll_by_rate(struct mtk_base_afe *afe, int rate) in mt8192_get_apll_by_rate()
608 void mt8192_mck_disable(struct mtk_base_afe *afe, int mck_id) in mt8192_mck_disable()
[all …]
/openbmc/linux/sound/soc/mediatek/mt6797/
H 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);
H 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);

1234