/sound/soc/mediatek/mt8183/ |
D | mt8183-afe-clk.h | 20 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 …]
|
D | mt8183-afe-common.h | 103 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);
|
D | mt8183-afe-clk.c | 92 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 …]
|
D | mt8183-dai-adda.c | 50 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()
|
D | mt8183-dai-i2s.c | 78 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 …]
|
D | mt8183-dai-tdm.c | 251 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()
|
D | mt8183-dai-hostless.c | 40 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()
|
D | mt8183-afe-pcm.c | 147 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()
|
D | mt8183-dai-pcm.c | 185 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/ |
D | mt2701-afe-clock-ctrl.h | 13 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 …]
|
D | mt2701-afe-clock-ctrl.c | 25 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 …]
|
D | mt2701-afe-pcm.c | 84 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/ |
D | mt6797-afe-clk.h | 12 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);
|
D | mt6797-afe-common.h | 56 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);
|
D | mt6797-dai-adda.c | 38 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()
|
D | mt6797-afe-clk.c | 34 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()
|
D | mt6797-dai-hostless.c | 40 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()
|
D | mt6797-afe-pcm.c | 145 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()
|
D | mt6797-dai-pcm.c | 185 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/ |
D | mtk-afe-fe-dai.c | 39 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()
|
D | mtk-afe-fe-dai.h | 13 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);
|
D | mtk-afe-platform-driver.c | 16 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()
|
D | mtk-afe-platform-driver.h | 16 struct mtk_base_afe; 25 int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe);
|
D | mtk-base-afe.h | 59 struct mtk_base_afe { struct
|
/sound/soc/mediatek/mt8173/ |
D | mt8173-afe-pcm.c | 196 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 …]
|