Home
last modified time | relevance | path

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

/sound/soc/mediatek/mt8183/
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 …]
Dmt8183-afe-common.h103 int mt8183_dai_adda_register(struct mtk_base_afe *afe);
104 int mt8183_dai_pcm_register(struct mtk_base_afe *afe);
105 int mt8183_dai_i2s_register(struct mtk_base_afe *afe);
106 int mt8183_dai_tdm_register(struct mtk_base_afe *afe);
107 int mt8183_dai_hostless_register(struct mtk_base_afe *afe);
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()
305 static int apll2_mux_setting(struct mtk_base_afe *afe, bool enable) in apll2_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()
[all …]
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()
356 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
489 int mt8183_dai_adda_register(struct mtk_base_afe *afe) in mt8183_dai_adda_register()
Dmt8183-dai-i2s.c78 static int get_i2s_id_by_name(struct mtk_base_afe *afe, in get_i2s_id_by_name()
95 static struct mtk_afe_i2s_priv *get_i2s_priv_by_name(struct mtk_base_afe *afe, in get_i2s_priv_by_name()
121 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8183_i2s_hd_get()
140 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8183_i2s_hd_set()
276 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_apll_event()
306 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_mclk_en_event()
427 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_i2s_share_connect()
448 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_i2s_hd_connect()
477 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_i2s_apll_connect()
503 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_i2s_mclk_connect()
[all …]
Dmt8183-dai-tdm.c251 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_tdm_bck_en_event()
277 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_tdm_mck_en_event()
335 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_tdm_apll_connect()
436 static int mtk_dai_tdm_cal_mclk(struct mtk_base_afe *afe, in mtk_dai_tdm_cal_mclk()
468 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_tdm_hw_params()
585 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_tdm_trigger()
618 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); in mtk_dai_tdm_set_sysclk()
639 struct mtk_base_afe *afe = dev_get_drvdata(dai->dev); in mtk_dai_tdm_set_fmt()
717 int mt8183_dai_tdm_register(struct mtk_base_afe *afe) in mt8183_dai_tdm_register()
Dmt8183-dai-hostless.c40 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_hostless_startup()
101 int mt8183_dai_hostless_register(struct mtk_base_afe *afe) in mt8183_dai_hostless_register()
Dmt8183-afe-pcm.c147 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt8183_memif_fs()
158 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt8183_irq_fs()
928 struct mtk_base_afe *afe = dev; in mt8183_afe_irq_handler()
978 struct mtk_base_afe *afe = dev_get_drvdata(dev); in mt8183_afe_runtime_suspend()
1012 struct mtk_base_afe *afe = dev_get_drvdata(dev); in mt8183_afe_runtime_resume()
1057 static int mt8183_dai_memif_register(struct mtk_base_afe *afe) in mt8183_dai_memif_register()
1077 typedef int (*dai_register_cb)(struct mtk_base_afe *);
1089 struct mtk_base_afe *afe; in mt8183_afe_pcm_dev_probe()
Dmt8183-dai-pcm.c185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_hw_params()
299 int mt8183_dai_pcm_register(struct mtk_base_afe *afe) in mt8183_dai_pcm_register()
/sound/soc/mediatek/mt2701/
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 …]
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 …]
Dmt2701-afe-pcm.c84 static int mt2701_dai_num_to_i2s(struct mtk_base_afe *afe, int num) in mt2701_dai_num_to_i2s()
111 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_afe_i2s_startup()
122 static int mt2701_afe_i2s_path_disable(struct mtk_base_afe *afe, in mt2701_afe_i2s_path_disable()
146 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_afe_i2s_shutdown()
173 static int mt2701_i2s_path_enable(struct mtk_base_afe *afe, in mt2701_i2s_path_enable()
234 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_afe_i2s_prepare()
268 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_afe_i2s_set_sysclk()
290 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_btmrg_startup()
307 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_btmrg_hw_params()
348 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt2701_btmrg_shutdown()
[all …]
/sound/soc/mediatek/mt6797/
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);
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);
Dmt6797-dai-adda.c38 static unsigned int adda_dl_rate_transform(struct mtk_base_afe *afe, in adda_dl_rate_transform()
71 static unsigned int adda_ul_rate_transform(struct mtk_base_afe *afe, in adda_ul_rate_transform()
135 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event()
234 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_adda_hw_params()
384 int mt6797_dai_adda_register(struct mtk_base_afe *afe) in mt6797_dai_adda_register()
Dmt6797-afe-clk.c34 int mt6797_init_clock(struct mtk_base_afe *afe) in mt6797_init_clock()
57 int mt6797_afe_enable_clock(struct mtk_base_afe *afe) in mt6797_afe_enable_clock()
113 int mt6797_afe_disable_clock(struct mtk_base_afe *afe) in mt6797_afe_disable_clock()
Dmt6797-dai-hostless.c40 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_hostless_startup()
101 int mt6797_dai_hostless_register(struct mtk_base_afe *afe) in mt6797_dai_hostless_register()
Dmt6797-afe-pcm.c145 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt6797_memif_fs()
156 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mt6797_irq_fs()
604 struct mtk_base_afe *afe = dev; in mt6797_afe_irq_handler()
650 struct mtk_base_afe *afe = dev_get_drvdata(dev); in mt6797_afe_runtime_suspend()
675 struct mtk_base_afe *afe = dev_get_drvdata(dev); in mt6797_afe_runtime_resume()
720 static int mt6797_dai_memif_register(struct mtk_base_afe *afe) in mt6797_dai_memif_register()
740 typedef int (*dai_register_cb)(struct mtk_base_afe *);
750 struct mtk_base_afe *afe; in mt6797_afe_pcm_dev_probe()
Dmt6797-dai-pcm.c185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_hw_params()
299 int mt6797_dai_pcm_register(struct mtk_base_afe *afe) in mt6797_dai_pcm_register()
/sound/soc/mediatek/common/
Dmtk-afe-fe-dai.c39 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_startup()
100 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_shutdown()
122 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_hw_params()
184 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_trigger()
241 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_fe_prepare()
285 int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe) in mtk_dynamic_irq_acquire()
302 int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id) in mtk_dynamic_irq_release()
317 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_dai_suspend()
342 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_afe_dai_resume()
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);
Dmtk-afe-platform-driver.c16 int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe) in mtk_afe_combine_sub_dai()
51 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_add_sub_dai_control()
85 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_pcm_pointer()
126 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_pcm_new()
Dmtk-afe-platform-driver.h16 struct mtk_base_afe;
25 int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe);
Dmtk-base-afe.h59 struct mtk_base_afe { struct
/sound/soc/mediatek/mt8173/
Dmt8173-afe-pcm.c196 static int mt8173_afe_set_i2s(struct mtk_base_afe *afe, unsigned int rate) in mt8173_afe_set_i2s()
224 static void mt8173_afe_set_i2s_enable(struct mtk_base_afe *afe, bool enable) in mt8173_afe_set_i2s_enable()
239 static int mt8173_afe_dais_enable_clks(struct mtk_base_afe *afe, in mt8173_afe_dais_enable_clks()
262 static int mt8173_afe_dais_set_clks(struct mtk_base_afe *afe, in mt8173_afe_dais_set_clks()
286 static void mt8173_afe_dais_disable_clks(struct mtk_base_afe *afe, in mt8173_afe_dais_disable_clks()
298 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_i2s_startup()
311 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_i2s_shutdown()
326 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_i2s_prepare()
347 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_hdmi_startup()
361 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_hdmi_shutdown()
[all …]