Searched refs:afe (Results 1 - 25 of 108) sorted by relevance

12345

/linux-master/sound/soc/mediatek/mt6797/
H A Dmt6797-afe-clk.h3 * mt6797-afe-clk.h -- Mediatek 6797 afe clock ctrl definition
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 DMakefile4 snd-soc-mt6797-afe-objs := \
5 mt6797-afe-pcm.o \
6 mt6797-afe-clk.o \
11 obj-$(CONFIG_SND_SOC_MT6797) += snd-soc-mt6797-afe.o
H A Dmt6797-afe-clk.c3 // mt6797-afe-clk.c -- Mediatek 6797 afe clock ctrl
10 #include "mt6797-afe-common.h"
11 #include "mt6797-afe-clk.h"
34 int mt6797_init_clock(struct mtk_base_afe *afe) argument
36 struct mt6797_afe_private *afe_priv = afe->platform_priv;
39 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk),
45 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]);
47 dev_err(afe->dev, "%s(), devm_clk_get %s fail, ret %ld\n",
57 int mt6797_afe_enable_clock(struct mtk_base_afe *afe) argument
113 mt6797_afe_disable_clock(struct mtk_base_afe *afe) argument
[all...]
/linux-master/sound/soc/mediatek/mt8183/
H A Dmt8183-afe-clk.h3 * mt8183-afe-clk.h -- Mediatek 8183 afe clock ctrl definition
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, in
[all...]
H A Dmt8183-dai-adda.c10 #include "mt8183-afe-common.h"
50 static unsigned int adda_dl_rate_transform(struct mtk_base_afe *afe, argument
77 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n",
83 static unsigned int adda_ul_rate_transform(struct mtk_base_afe *afe, argument
100 dev_warn(afe->dev, "%s(), rate %d invalid, use 48kHz!!!\n",
147 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); local
148 struct mt8183_afe_private *afe_priv = afe->platform_priv;
150 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n",
158 regmap_update_bits(afe->regmap, AFE_ADDA_MTKAIF_RX_CFG0,
162 regmap_update_bits(afe
201 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); local
213 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt); local
301 set_mtkaif_rx(struct mtk_base_afe *afe) argument
357 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); local
490 mt8183_dai_adda_register(struct mtk_base_afe *afe) argument
[all...]
H A DMakefile4 snd-soc-mt8183-afe-objs := \
5 mt8183-afe-pcm.o \
6 mt8183-afe-clk.o \
13 obj-$(CONFIG_SND_SOC_MT8183) += snd-soc-mt8183-afe.o
/linux-master/sound/soc/mediatek/mt8195/
H A Dmt8195-audsys-clk.h12 int mt8195_audsys_clk_register(struct mtk_base_afe *afe);
H A DMakefile4 snd-soc-mt8195-afe-objs := \
6 mt8195-afe-clk.o \
7 mt8195-afe-pcm.o \
12 obj-$(CONFIG_SND_SOC_MT8195) += snd-soc-mt8195-afe.o
H A Dmt8195-afe-clk.h3 * mt8195-afe-clk.h -- Mediatek 8195 afe clock ctrl definition
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, struc
[all...]
H A Dmt8195-afe-clk.c3 * mt8195-afe-clk.c -- Mediatek 8195 afe clock ctrl
12 #include "mt8195-afe-common.h"
13 #include "mt8195-afe-clk.h"
41 /* afe clock gate */
217 static int mt8195_afe_setup_apll_tuner(struct mtk_base_afe *afe, argument
225 regmap_update_bits(afe->regmap, cfg->apll_div_reg,
229 regmap_update_bits(afe->regmap, cfg->ref_ck_sel_reg,
233 regmap_update_bits(afe->regmap, cfg->upper_bound_reg,
240 static int mt8195_afe_enable_tuner_clk(struct mtk_base_afe *afe, argument
261 mt8195_afe_disable_tuner_clk(struct mtk_base_afe *afe, unsigned int id) argument
282 mt8195_afe_enable_apll_tuner(struct mtk_base_afe *afe, unsigned int id) argument
314 mt8195_afe_disable_apll_tuner(struct mtk_base_afe *afe, unsigned int id) argument
358 mt8195_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll) argument
377 mt8195_afe_init_clock(struct mtk_base_afe *afe) argument
413 mt8195_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk) argument
431 mt8195_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk) argument
440 mt8195_afe_prepare_clk(struct mtk_base_afe *afe, struct clk *clk) argument
457 mt8195_afe_unprepare_clk(struct mtk_base_afe *afe, struct clk *clk) argument
465 mt8195_afe_enable_clk_atomic(struct mtk_base_afe *afe, struct clk *clk) argument
482 mt8195_afe_disable_clk_atomic(struct mtk_base_afe *afe, struct clk *clk) argument
490 mt8195_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk, unsigned int rate) argument
507 mt8195_afe_set_clk_parent(struct mtk_base_afe *afe, struct clk *clk, struct clk *parent) argument
574 mt8195_afe_enable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type) argument
584 mt8195_afe_disable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type) argument
594 mt8195_afe_enable_reg_rw_clk(struct mtk_base_afe *afe) argument
615 mt8195_afe_disable_reg_rw_clk(struct mtk_base_afe *afe) argument
636 mt8195_afe_enable_afe_on(struct mtk_base_afe *afe) argument
642 mt8195_afe_disable_afe_on(struct mtk_base_afe *afe) argument
648 mt8195_afe_enable_timing_sys(struct mtk_base_afe *afe) argument
671 mt8195_afe_disable_timing_sys(struct mtk_base_afe *afe) argument
694 mt8195_afe_enable_main_clock(struct mtk_base_afe *afe) argument
706 mt8195_afe_disable_main_clock(struct mtk_base_afe *afe) argument
[all...]
/linux-master/sound/soc/mediatek/mt8188/
H A Dmt8188-audsys-clk.h12 int mt8188_audsys_clk_register(struct mtk_base_afe *afe);
H A DMakefile4 snd-soc-mt8188-afe-objs := \
5 mt8188-afe-clk.o \
6 mt8188-afe-pcm.o \
12 obj-$(CONFIG_SND_SOC_MT8188) += snd-soc-mt8188-afe.o
H A Dmt8188-afe-clk.h3 * mt8188-afe-clk.h -- MediaTek 8188 afe clock ctrl definition
109 int mt8188_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll);
111 int mt8188_get_apll_by_rate(struct mtk_base_afe *afe, int rate);
112 int mt8188_get_apll_by_name(struct mtk_base_afe *afe, const char *name);
113 int mt8188_afe_init_clock(struct mtk_base_afe *afe);
114 int mt8188_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk);
115 void mt8188_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk);
116 int mt8188_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk,
118 int mt8188_afe_set_clk_parent(struct mtk_base_afe *afe, struc
[all...]
H A Dmt8188-afe-clk.c3 * mt8188-afe-clk.c -- MediaTek 8188 afe clock ctrl
13 #include "mt8188-afe-common.h"
14 #include "mt8188-afe-clk.h"
51 /* afe clock gate */
226 static int mt8188_afe_setup_apll_tuner(struct mtk_base_afe *afe, unsigned int id) argument
233 regmap_update_bits(afe->regmap,
238 regmap_update_bits(afe->regmap,
243 regmap_update_bits(afe->regmap,
251 static int mt8188_afe_enable_tuner_clk(struct mtk_base_afe *afe, argument
272 mt8188_afe_disable_tuner_clk(struct mtk_base_afe *afe, unsigned int id) argument
293 mt8188_afe_enable_apll_tuner(struct mtk_base_afe *afe, unsigned int id) argument
324 mt8188_afe_disable_apll_tuner(struct mtk_base_afe *afe, unsigned int id) argument
367 mt8188_afe_get_mclk_source_rate(struct mtk_base_afe *afe, int apll) argument
386 mt8188_get_apll_by_rate(struct mtk_base_afe *afe, int rate) argument
391 mt8188_get_apll_by_name(struct mtk_base_afe *afe, const char *name) argument
399 mt8188_afe_init_clock(struct mtk_base_afe *afe) argument
439 mt8188_afe_enable_clk(struct mtk_base_afe *afe, struct clk *clk) argument
457 mt8188_afe_disable_clk(struct mtk_base_afe *afe, struct clk *clk) argument
466 mt8188_afe_set_clk_rate(struct mtk_base_afe *afe, struct clk *clk, unsigned int rate) argument
483 mt8188_afe_set_clk_parent(struct mtk_base_afe *afe, struct clk *clk, struct clk *parent) argument
550 mt8188_afe_enable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type) argument
561 mt8188_afe_disable_top_cg(struct mtk_base_afe *afe, unsigned int cg_type) argument
572 mt8188_afe_enable_reg_rw_clk(struct mtk_base_afe *afe) argument
593 mt8188_afe_disable_reg_rw_clk(struct mtk_base_afe *afe) argument
607 mt8188_afe_enable_afe_on(struct mtk_base_afe *afe) argument
613 mt8188_afe_disable_afe_on(struct mtk_base_afe *afe) argument
619 mt8188_afe_enable_a1sys(struct mtk_base_afe *afe) argument
631 mt8188_afe_disable_a1sys(struct mtk_base_afe *afe) argument
640 mt8188_afe_enable_a2sys(struct mtk_base_afe *afe) argument
652 mt8188_afe_disable_a2sys(struct mtk_base_afe *afe) argument
661 mt8188_apll1_enable(struct mtk_base_afe *afe) argument
696 mt8188_apll1_disable(struct mtk_base_afe *afe) argument
709 mt8188_apll2_enable(struct mtk_base_afe *afe) argument
728 mt8188_apll2_disable(struct mtk_base_afe *afe) argument
735 mt8188_afe_enable_main_clock(struct mtk_base_afe *afe) argument
742 mt8188_afe_disable_main_clock(struct mtk_base_afe *afe) argument
[all...]
/linux-master/sound/soc/mediatek/mt8186/
H A Dmt8186-audsys-clk.h12 int mt8186_audsys_clk_register(struct mtk_base_afe *afe);
H A Dmt8186-afe-clk.h3 * mt8186-afe-clk.h -- Mediatek 8186 afe clock ctrl definition
82 int mt8186_set_audio_int_bus_parent(struct mtk_base_afe *afe, int clk_id);
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);
87 void mt8186_afe_disable_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);
[all...]
H A Dmt8186-afe-clk.c3 // mt8186-afe-clk.c -- Mediatek 8186 afe clock ctrl
12 #include "mt8186-afe-common.h"
13 #include "mt8186-afe-clk.h"
73 int mt8186_set_audio_int_bus_parent(struct mtk_base_afe *afe, argument
76 struct mt8186_afe_private *afe_priv = afe->platform_priv;
82 dev_err(afe->dev, "%s clk_set_parent %s-%s fail %d\n",
91 static int apll1_mux_setting(struct mtk_base_afe *afe, bool enable) argument
93 struct mt8186_afe_private *afe_priv = afe->platform_priv;
99 dev_err(afe
152 apll2_mux_setting(struct mtk_base_afe *afe, bool enable) argument
213 mt8186_afe_enable_cgs(struct mtk_base_afe *afe) argument
231 mt8186_afe_disable_cgs(struct mtk_base_afe *afe) argument
240 mt8186_afe_enable_clock(struct mtk_base_afe *afe) argument
320 mt8186_afe_disable_clock(struct mtk_base_afe *afe) argument
332 mt8186_afe_suspend_clock(struct mtk_base_afe *afe) argument
359 mt8186_afe_resume_clock(struct mtk_base_afe *afe) argument
387 mt8186_apll1_enable(struct mtk_base_afe *afe) argument
425 mt8186_apll1_disable(struct mtk_base_afe *afe) argument
440 mt8186_apll2_enable(struct mtk_base_afe *afe) argument
478 mt8186_apll2_disable(struct mtk_base_afe *afe) argument
493 mt8186_get_apll_rate(struct mtk_base_afe *afe, int apll) argument
498 mt8186_get_apll_by_rate(struct mtk_base_afe *afe, int rate) argument
503 mt8186_get_apll_by_name(struct mtk_base_afe *afe, const char *name) argument
540 mt8186_mck_enable(struct mtk_base_afe *afe, int mck_id, int rate) argument
585 mt8186_mck_disable(struct mtk_base_afe *afe, int mck_id) argument
596 mt8186_init_clock(struct mtk_base_afe *afe) argument
[all...]
/linux-master/sound/soc/mediatek/mt2701/
H A Dmt2701-afe-clock-ctrl.h3 * mt2701-afe-clock-ctrl.h -- Mediatek 2701 afe clock ctrl definition
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);
[all...]
H A DMakefile3 snd-soc-mt2701-afe-objs := mt2701-afe-pcm.o mt2701-afe-clock-ctrl.o
4 obj-$(CONFIG_SND_SOC_MT2701) += snd-soc-mt2701-afe.o
H A Dmt2701-afe-clock-ctrl.c3 * mt2701-afe-clock-ctrl.c -- Mediatek 2701 afe clock ctrl
10 #include "mt2701-afe-common.h"
11 #include "mt2701-afe-clock-ctrl.h"
25 int mt2701_init_clock(struct mtk_base_afe *afe) argument
27 struct mt2701_afe_private *afe_priv = afe->platform_priv;
31 afe_priv->base_ck[i] = devm_clk_get(afe->dev, base_clks[i]);
33 dev_err(afe->dev, "failed to get %s\n", base_clks[i]);
45 i2s_path->sel_ck = devm_clk_get(afe->dev, name);
47 dev_err(afe
101 mt2701_afe_enable_i2s(struct mtk_base_afe *afe, struct mt2701_i2s_path *i2s_path, int dir) argument
127 mt2701_afe_disable_i2s(struct mtk_base_afe *afe, struct mt2701_i2s_path *i2s_path, int dir) argument
135 mt2701_afe_enable_mclk(struct mtk_base_afe *afe, int id) argument
143 mt2701_afe_disable_mclk(struct mtk_base_afe *afe, int id) argument
151 mt2701_enable_btmrg_clk(struct mtk_base_afe *afe) argument
158 mt2701_disable_btmrg_clk(struct mtk_base_afe *afe) argument
165 mt2701_afe_enable_audsys(struct mtk_base_afe *afe) argument
220 mt2701_afe_disable_audsys(struct mtk_base_afe *afe) argument
233 mt2701_afe_enable_clock(struct mtk_base_afe *afe) argument
258 mt2701_afe_disable_clock(struct mtk_base_afe *afe) argument
270 mt2701_mclk_configuration(struct mtk_base_afe *afe, int id) argument
[all...]
/linux-master/sound/soc/mediatek/mt8192/
H A DMakefile4 snd-soc-mt8192-afe-objs := \
5 mt8192-afe-pcm.o \
6 mt8192-afe-clk.o \
7 mt8192-afe-gpio.o \
9 mt8192-afe-control.o \
14 obj-$(CONFIG_SND_SOC_MT8192) += snd-soc-mt8192-afe.o
/linux-master/sound/soc/mediatek/common/
H A Dmtk-afe-fe-dai.c3 * mtk-afe-fe-dais.c -- Mediatek afe fe dai operator
14 #include "mtk-afe-platform-driver.h"
16 #include "mtk-afe-fe-dai.h"
17 #include "mtk-base-afe.h"
41 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); local
44 struct mtk_base_afe_memif *memif = &afe->memif[memif_num];
45 const struct snd_pcm_hardware *mtk_afe_hardware = afe->mtk_afe_hardware;
53 mtk_regmap_update_bits(afe->regmap, memif->data->agent_disable_reg,
71 dev_err(afe
102 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); local
124 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); local
187 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); local
201 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); local
267 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); local
291 mtk_dynamic_irq_acquire(struct mtk_base_afe *afe) argument
308 mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id) argument
323 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); local
350 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); local
373 mtk_memif_set_enable(struct mtk_base_afe *afe, int id) argument
387 mtk_memif_set_disable(struct mtk_base_afe *afe, int id) argument
401 mtk_memif_set_addr(struct mtk_base_afe *afe, int id, unsigned char *dma_area, dma_addr_t dma_addr, size_t dma_bytes) argument
456 mtk_memif_set_channel(struct mtk_base_afe *afe, int id, unsigned int channel) argument
490 mtk_memif_set_rate_fs(struct mtk_base_afe *afe, int id, int fs) argument
503 mtk_memif_set_rate(struct mtk_base_afe *afe, int id, unsigned int rate) argument
529 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); local
548 mtk_memif_set_format(struct mtk_base_afe *afe, int id, snd_pcm_format_t format) argument
591 mtk_memif_set_pbuf_size(struct mtk_base_afe *afe, int id, int pbuf_size) argument
[all...]
H A Dmtk-afe-fe-dai.h3 * mtk-afe-fe-dais.h -- Mediatek afe fe dai operator definition
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,
[all...]
/linux-master/sound/soc/mediatek/mt7986/
H A DMakefile4 snd-soc-mt7986-afe-objs := \
5 mt7986-afe-pcm.o \
8 obj-$(CONFIG_SND_SOC_MT7986) += snd-soc-mt7986-afe.o
/linux-master/drivers/media/i2c/adv748x/
H A Dadv748x-afe.c55 static int adv748x_afe_status(struct adv748x_afe *afe, u32 *signal, argument
58 struct adv748x_state *state = adv748x_afe_to_state(afe);
112 static void adv748x_afe_fill_format(struct adv748x_afe *afe, argument
122 fmt->height = afe->curr_norm & V4L2_STD_525_60 ? 480 : 576;
157 int adv748x_afe_s_input(struct adv748x_afe *afe, unsigned int input) argument
159 struct adv748x_state *state = adv748x_afe_to_state(afe);
167 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); local
169 if (afe->curr_norm & V4L2_STD_525_60) {
186 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); local
188 *norm = afe
195 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); local
214 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); local
257 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); local
272 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); local
317 adv748x_afe_propagate_pixelrate(struct adv748x_afe *afe) argument
349 struct adv748x_afe *afe = adv748x_sd_to_afe(sd); local
418 struct adv748x_afe *afe = adv748x_ctrl_to_afe(ctrl); local
466 adv748x_afe_init_controls(struct adv748x_afe *afe) argument
502 adv748x_afe_init(struct adv748x_afe *afe) argument
551 adv748x_afe_cleanup(struct adv748x_afe *afe) argument
[all...]

Completed in 361 milliseconds

12345