| /linux/sound/soc/mediatek/mt8365/ |
| H A D | mt8365-afe-clk.h | 13 struct mtk_base_afe; 16 int mt8365_afe_init_audio_clk(struct mtk_base_afe *afe); 17 void mt8365_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk); 18 int mt8365_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk, unsigned int rate); 19 int mt8365_afe_set_clk_parent(struct mtk_base_afe *afe, struct clk *clk, struct clk *parent); 20 int mt8365_afe_enable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type); 21 int mt8365_afe_disable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type); 22 int mt8365_afe_enable_main_clk(struct mtk_base_afe *afe); 23 int mt8365_afe_disable_main_clk(struct mtk_base_afe *afe); 24 int mt8365_afe_emi_clk_on(struct mtk_base_afe *afe); [all …]
|
| H A D | mt8365-afe-common.h | 427 int mt8365_dai_i2s_register(struct mtk_base_afe *afe); 428 int mt8365_dai_set_priv(struct mtk_base_afe *afe, 435 void mt8365_afe_set_i2s_out_enable(struct mtk_base_afe *afe, bool enable); 436 int mt8365_afe_set_i2s_out(struct mtk_base_afe *afe, unsigned int rate, int bit_width); 438 int mt8365_dai_adda_register(struct mtk_base_afe *afe); 439 int mt8365_dai_enable_adda_on(struct mtk_base_afe *afe); 440 int mt8365_dai_disable_adda_on(struct mtk_base_afe *afe); 442 int mt8365_dai_dmic_register(struct mtk_base_afe *afe); 444 int mt8365_dai_pcm_register(struct mtk_base_afe *afe); 446 int mt8365_dai_tdm_register(struct mtk_base_afe *afe);
|
| H A D | mt8365-dai-dmic.c | 52 static void audio_dmic_adda_enable(struct mtk_base_afe *afe) in audio_dmic_adda_enable() 60 static void audio_dmic_adda_disable(struct mtk_base_afe *afe) in audio_dmic_adda_disable() 68 static void mt8365_dai_enable_dmic(struct mtk_base_afe *afe, in mt8365_dai_enable_dmic() 88 static void mt8365_dai_disable_dmic(struct mtk_base_afe *afe, in mt8365_dai_disable_dmic() 111 static int mt8365_dai_configure_dmic(struct mtk_base_afe *afe, in mt8365_dai_configure_dmic() 165 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8365_dai_dmic_startup() 182 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8365_dai_dmic_shutdown() 199 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8365_dai_dmic_prepare() 265 static int init_dmic_priv_data(struct mtk_base_afe *afe) in init_dmic_priv_data() 292 int mt8365_dai_dmic_register(struct mtk_base_afe *afe) in mt8365_dai_dmic_register()
|
| H A D | mt8365-dai-adda.c | 21 static int mt8365_dai_set_adda_out(struct mtk_base_afe *afe, unsigned int rate) in mt8365_dai_set_adda_out() 50 static int mt8365_dai_set_adda_in(struct mtk_base_afe *afe, unsigned int rate) in mt8365_dai_set_adda_in() 64 int mt8365_dai_enable_adda_on(struct mtk_base_afe *afe) in mt8365_dai_enable_adda_on() 82 int mt8365_dai_disable_adda_on(struct mtk_base_afe *afe) in mt8365_dai_disable_adda_on() 104 static void mt8365_dai_set_adda_out_enable(struct mtk_base_afe *afe, in mt8365_dai_set_adda_out_enable() 115 static void mt8365_dai_set_adda_in_enable(struct mtk_base_afe *afe, bool enable) in mt8365_dai_set_adda_in_enable() 137 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8365_dai_int_adda_startup() 155 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8365_dai_int_adda_shutdown() 184 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8365_dai_int_adda_prepare() 296 int mt8365_dai_adda_register(struct mtk_base_afe *afe) in mt8365_dai_adda_register()
|
| /linux/sound/soc/mediatek/mt8183/ |
| H A 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 …]
|
| H A D | mt8183-afe-common.h | 102 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 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 …]
|
| /linux/sound/soc/mediatek/mt8195/ |
| H A D | mt8195-afe-clk.h | 98 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); 107 void mt8195_afe_unprepare_clk(struct mtk_base_afe *afe, struct clk *clk); 108 int mt8195_afe_enable_clk_atomic(struct mtk_base_afe *afe, struct clk *clk); 109 void mt8195_afe_disable_clk_atomic(struct mtk_base_afe *afe, struct clk *clk); 110 int mt8195_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk, [all …]
|
| H A D | mt8195-afe-clk.c | 217 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() 314 static int mt8195_afe_disable_apll_tuner(struct mtk_base_afe *afe, in mt8195_afe_disable_apll_tuner() 358 int mt8195_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll) in mt8195_afe_get_mclk_source_rate() 377 int mt8195_afe_init_clock(struct mtk_base_afe *afe) in mt8195_afe_init_clock() 413 int mt8195_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk) in mt8195_afe_enable_clk() 431 void mt8195_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk) in mt8195_afe_disable_clk() 440 int mt8195_afe_prepare_clk(struct mtk_base_afe *afe, struct clk *clk) in mt8195_afe_prepare_clk() [all …]
|
| H A D | mt8195-dai-adda.c | 38 static int mt8195_adda_mtkaif_init(struct mtk_base_afe *afe) in mt8195_adda_mtkaif_init() 113 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_mtkaif_cfg_event() 134 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_dl_event() 151 static void mtk_adda_ul_mictype(struct mtk_base_afe *afe, int adda, bool dmic) in mtk_adda_ul_mictype() 184 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_ul_event() 211 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda6_ul_event() 247 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_audio_hires_event() 270 static struct mtk_dai_adda_priv *get_adda_priv_by_name(struct mtk_base_afe *afe, in get_adda_priv_by_name() 293 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_adda_hires_connect() 459 struct mtk_base_afe *af in mt8195_adda_dl_gain_put() [all...] |
| /linux/sound/soc/mediatek/mt2701/ |
| H A 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 …]
|
| H A 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 …]
|
| /linux/sound/soc/mediatek/mt8192/ |
| H A D | mt8192-afe-clk.h | 221 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); 234 int mt8192_get_apll_by_rate(struct mtk_base_afe *afe, int rate); [all …]
|
| H A D | mt8192-afe-common.h | 155 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 D | mt8192-afe-clk.c | 63 int mt8192_set_audio_int_bus_parent(struct mtk_base_afe *afe, in mt8192_set_audio_int_bus_parent() 80 static int apll1_mux_setting(struct mtk_base_afe *afe, bool enable) in apll1_mux_setting() 142 static int apll2_mux_setting(struct mtk_base_afe *afe, bool enable) in apll2_mux_setting() 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() [all …]
|
| /linux/sound/soc/mediatek/mt8186/ |
| H A D | mt8186-afe-common.h | 175 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 D | mt8186-dai-tdm.c | 104 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() 246 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_tdm_apll_connect() 276 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_tdm_hd_get() 290 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_tdm_hd_set() 335 static int mtk_dai_tdm_cal_mclk(struct mtk_base_afe *afe, in mtk_dai_tdm_cal_mclk() 367 struct mtk_base_afe *af in mtk_dai_tdm_hw_params() [all...] |
| H A D | mt8186-dai-i2s.c | 76 static int get_i2s_id_by_name(struct mtk_base_afe *afe, in get_i2s_id_by_name() 91 static struct mtk_afe_i2s_priv *get_i2s_priv_by_name(struct mtk_base_afe *afe, in get_i2s_priv_by_name() 117 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_i2s_hd_get() 130 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_i2s_hd_set() 362 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_i2s_en_event() 389 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_apll_event() 419 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_mclk_en_event() 542 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_i2s_share_connect() 557 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_i2s_hd_connect() 580 struct mtk_base_afe *af in mtk_afe_i2s_apll_connect() [all...] |
| H A D | mt8186-misc-control.c | 78 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()
|
| H A D | mt8186-dai-adda.c | 44 static struct mtk_afe_adda_priv *get_adda_priv_by_name(struct mtk_base_afe *afe, in get_adda_priv_by_name() 122 static int mtk_adda_ul_src_dmic(struct mtk_base_afe *afe, int id) in mtk_adda_ul_src_dmic() 160 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 mtk_adda_pad_top_event() 223 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_mtkaif_cfg_event() 303 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_adda_dl_event() 328 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_adda_dmic_get() 340 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mt8186_adda_dmic_set() 456 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); in mtk_afe_dac_hires_connect() 474 struct mtk_base_afe *af in mtk_afe_adc_hires_connect() [all...] |
| /linux/sound/soc/mediatek/mt6797/ |
| H A 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);
|
| H A 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);
|
| /linux/sound/soc/mediatek/common/ |
| H A D | mtk-afe-platform-driver.c | 16 int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe) in mtk_afe_combine_sub_dai() 52 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() 121 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_pcm_new() 134 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_component_probe()
|
| H A D | mtk-dai-adda-common.h | 11 struct mtk_base_afe; 43 unsigned int mtk_adda_dl_rate_transform(struct mtk_base_afe *afe, u32 rate); 44 unsigned int mtk_adda_ul_rate_transform(struct mtk_base_afe *afe, u32 rate);
|
| /linux/sound/soc/mediatek/mt8173/ |
| H A D | mt8173-afe-pcm.c | 197 static int mt8173_afe_set_i2s(struct mtk_base_afe *afe, unsigned int rate) in mt8173_afe_set_i2s() 225 static void mt8173_afe_set_i2s_enable(struct mtk_base_afe *afe, bool enable) in mt8173_afe_set_i2s_enable() 240 static int mt8173_afe_dais_enable_clks(struct mtk_base_afe *afe, in mt8173_afe_dais_enable_clks() 263 static int mt8173_afe_dais_set_clks(struct mtk_base_afe *afe, in mt8173_afe_dais_set_clks() 287 static void mt8173_afe_dais_disable_clks(struct mtk_base_afe *afe, in mt8173_afe_dais_disable_clks() 297 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_i2s_startup() 310 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_i2s_shutdown() 325 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_i2s_prepare() 346 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_hdmi_startup() 360 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mt8173_afe_hdmi_shutdown() [all …]
|