Searched +full:mt8188 +full:- +full:afe (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/sound/soc/mediatek/mt8188/ |
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 4 snd-soc-mt8188-afe-y := \ 5 mt8188-afe-clk.o \ 6 mt8188-afe-pcm.o \ 7 mt8188-audsys-clk.o \ 8 mt8188-dai-adda.o \ 9 mt8188-dai-etdm.o \ 10 mt8188-dai-pcm.o 12 obj-$(CONFIG_SND_SOC_MT8188) += snd-soc-mt8188-afe.o 15 obj-$(CONFIG_SND_SOC_MT8188_MT6359) += mt8188-mt6359.o
|
D | mt8188-audsys-clk.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8188-audsys-clk.c -- MediaTek 8188 audsys clock control 6 * Author: Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 10 #include <linux/clk-provider.h> 12 #include "mt8188-afe-common.h" 13 #include "mt8188-audsys-clk.h" 14 #include "mt8188-audsys-clkid.h" 15 #include "mt8188-reg.h" 143 struct mtk_base_afe *afe = data; in mt8188_audsys_clk_unregister() local 144 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mt8188_audsys_clk_unregister() [all …]
|
D | mt8188-afe-clk.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8188-afe-clk.c -- MediaTek 8188 afe clock ctrl 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 13 #include "mt8188-afe-common.h" 14 #include "mt8188-afe-clk.h" 15 #include "mt8188-audsys-clk.h" 16 #include "mt8188-reg.h" 51 /* afe clock gate */ 218 return -EINVAL; in mt8188_afe_init_apll_tuner() 220 cfg->ref_cnt = 0; in mt8188_afe_init_apll_tuner() [all …]
|
D | mt8188-dai-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 14 #include "mt8188-afe-clk.h" 15 #include "mt8188-afe-common.h" 16 #include "mt8188-reg.h" 62 return -EINVAL; in mtk_dai_pcm_mode() 123 struct snd_pcm_runtime * const runtime = substream->runtime; in mtk_dai_pcm_configure() 124 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai); in mtk_dai_pcm_configure() local 125 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_pcm_configure() 131 unsigned int bit_width = dai->sample_bits; in mtk_dai_pcm_configure() [all …]
|
D | mt8188-dai-adda.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 14 #include "mt8188-afe-clk.h" 15 #include "mt8188-afe-common.h" 16 #include "mt8188-reg.h" 17 #include "../common/mtk-dai-adda-common.h" 32 static int mt8188_adda_mtkaif_init(struct mtk_base_afe *afe) in mt8188_adda_mtkaif_init() argument 34 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mt8188_adda_mtkaif_init() 35 struct mtkaif_param *param = &afe_priv->mtkaif_params; in mt8188_adda_mtkaif_init() 42 regmap_set_bits(afe->regmap, AFE_ADDA_MTKAIF_CFG0, in mt8188_adda_mtkaif_init() [all …]
|
D | mt8188-afe-clk.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * mt8188-afe-clk.h -- MediaTek 8188 afe clock ctrl definition 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 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, [all …]
|
D | mt8188-mt6359.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mt8188-mt6359.c -- MT8188-MT6359 ALSA SoC machine driver 17 #include "mt8188-afe-common.h" 21 #include "../common/mtk-afe-platform-driver.h" 22 #include "../common/mtk-soundcard-driver.h" 23 #include "../common/mtk-dsp-sof-common.h" 24 #include "../common/mtk-soc-card.h" 42 #define MAX98390_CODEC_DAI "max98390-aif1" 43 #define MAX98390_DEV0_NAME "max98390.0-0038" /* rear right */ 44 #define MAX98390_DEV1_NAME "max98390.0-0039" /* rear left */ [all …]
|
D | mt8188-afe-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * mt8188-afe-common.h -- MediaTek 8188 audio driver definitions 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 17 #include "../common/mtk-base-afe.h" 40 MT8188_AFE_MEMIF_NUM = (MT8188_AFE_MEMIF_END - MT8188_AFE_MEMIF_START), 53 (MT8188_AFE_IO_ETDM_END - MT8188_AFE_IO_ETDM_START), 57 MT8188_AFE_IO_NUM = (MT8188_AFE_IO_END - MT8188_AFE_IO_START), 59 MT8188_DAI_NUM = (MT8188_DAI_END - MT8188_DAI_START), 129 spinlock_t afe_ctrl_lock; /* Lock for afe control */ 139 int mt8188_dai_adda_register(struct mtk_base_afe *afe); [all …]
|
D | mt8188-audsys-clk.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * mt8188-audsys-clk.h -- MediaTek 8188 audsys clock definition 6 * Author: Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 12 int mt8188_audsys_clk_register(struct mtk_base_afe *afe);
|
D | mt8188-afe-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek ALSA SoC AFE platform driver for 8188 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 11 #include <linux/arm-smccc.h> 13 #include <linux/dma-mapping.h> 24 #include "mt8188-afe-common.h" 25 #include "mt8188-afe-clk.h" 26 #include "mt8188-reg.h" 27 #include "../common/mtk-afe-platform-driver.h" 28 #include "../common/mtk-afe-fe-dai.h" [all …]
|
D | mt8188-dai-etdm.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Chun-Chia Chiu <chun-chia.chiu@mediatek.com> 15 #include "mt8188-afe-clk.h" 16 #include "mt8188-afe-common.h" 17 #include "mt8188-reg.h" 109 int cowork_slv_id[MT8188_AFE_IO_ETDM_NUM - 1]; //dai_id 139 return -EINVAL; in get_etdm_fs_timing() 160 etdm_reg->con0 = ETDM_IN1_CON0; in get_etdm_reg() 161 etdm_reg->con1 = ETDM_IN1_CON1; in get_etdm_reg() 162 etdm_reg->con2 = ETDM_IN1_CON2; in get_etdm_reg() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/sound/ |
D | mediatek,mt8188-afe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mediatek,mt8188-afe.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek AFE PCM controller for mt8188 10 - Trevor Wu <trevor.wu@mediatek.com> 14 const: mediatek,mt8188-afe 25 reset-names: 28 memory-region: 31 Shared memory region for AFE memif. A "shared-dma-pool". [all …]
|
D | mediatek,mt8188-mt6359.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/mediatek,mt8188-mt6359.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek MT8188 ASoC sound card 10 - Trevor Wu <trevor.wu@mediatek.com> 13 - $ref: sound-card-common.yaml# 18 - mediatek,mt8188-es8326 19 - mediatek,mt8188-mt6359-evb 20 - mediatek,mt8188-nau8825 [all …]
|