/kernel/linux/linux-5.10/sound/soc/mediatek/mt8183/ |
D | mt8183-afe-clk.c | 94 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_init_clock() local 97 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt8183_init_clock() 99 if (!afe_priv->clk) in mt8183_init_clock() 103 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt8183_init_clock() 104 if (IS_ERR(afe_priv->clk[i])) { in mt8183_init_clock() 107 PTR_ERR(afe_priv->clk[i])); in mt8183_init_clock() 108 return PTR_ERR(afe_priv->clk[i]); in mt8183_init_clock() 117 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_afe_enable_clock() local 120 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUDIO]); in mt8183_afe_enable_clock() 127 ret = clk_prepare_enable(afe_priv->clk[CLK_MUX_AUDIO]); in mt8183_afe_enable_clock() [all …]
|
D | mt8183-dai-adda.c | 148 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_adda_ul_event() local 156 if (afe_priv->mtkaif_dmic) { in mtk_adda_ul_event() 202 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_adda_dmic_get() local 204 ucontrol->value.integer.value[0] = afe_priv->mtkaif_dmic; in mt8183_adda_dmic_get() 214 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_adda_dmic_set() local 220 afe_priv->mtkaif_dmic = ucontrol->value.integer.value[0]; in mt8183_adda_dmic_set() 223 __func__, kcontrol->id.name, afe_priv->mtkaif_dmic); in mt8183_adda_dmic_set() 303 struct mt8183_afe_private *afe_priv = afe->platform_priv; in set_mtkaif_rx() local 307 switch (afe_priv->mtkaif_protocol) { in set_mtkaif_rx() 315 if (afe_priv->mtkaif_phase_cycle[0] >= in set_mtkaif_rx() [all …]
|
D | mt8183-dai-tdm.c | 252 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_bck_en_event() local 253 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[MT8183_DAI_TDM]; in mtk_tdm_bck_en_event() 278 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_tdm_mck_en_event() local 279 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[MT8183_DAI_TDM]; in mtk_tdm_mck_en_event() 336 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_afe_tdm_apll_connect() local 337 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[MT8183_DAI_TDM]; in mtk_afe_tdm_apll_connect() 469 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_dai_tdm_hw_params() local 471 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[tdm_id]; in mtk_dai_tdm_hw_params() 619 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_dai_tdm_set_sysclk() local 620 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_tdm_set_sysclk() [all …]
|
D | mt8183-dai-i2s.c | 100 struct mt8183_afe_private *afe_priv = afe->platform_priv; in get_i2s_priv_by_name() local 106 return afe_priv->dai_priv[dai_id]; in get_i2s_priv_by_name() 709 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_dai_i2s_config() local 710 struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[i2s_id]; in mtk_dai_i2s_config() 799 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_dai_i2s_set_sysclk() local 800 struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_i2s_set_sysclk() 836 share_i2s_priv = afe_priv->dai_priv[i2s_priv->share_i2s_id]; in mtk_dai_i2s_set_sysclk() 853 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mtk_dai_i2s_set_fmt() local 868 i2s_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_i2s_set_fmt() 1011 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_dai_i2s_get_share() local [all …]
|
D | mt8183-afe-pcm.c | 980 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_afe_runtime_suspend() local 984 if (!afe->regmap || afe_priv->pm_runtime_bypass_reg_ctl) in mt8183_afe_runtime_suspend() 1014 struct mt8183_afe_private *afe_priv = afe->platform_priv; in mt8183_afe_runtime_resume() local 1021 if (!afe->regmap || afe_priv->pm_runtime_bypass_reg_ctl) in mt8183_afe_runtime_resume() 1090 struct mt8183_afe_private *afe_priv; in mt8183_afe_pcm_dev_probe() local 1100 afe->platform_priv = devm_kzalloc(&pdev->dev, sizeof(*afe_priv), in mt8183_afe_pcm_dev_probe() 1105 afe_priv = afe->platform_priv; in mt8183_afe_pcm_dev_probe() 1145 afe_priv->pm_runtime_bypass_reg_ctl = true; in mt8183_afe_pcm_dev_probe() 1155 afe_priv->pm_runtime_bypass_reg_ctl = false; in mt8183_afe_pcm_dev_probe()
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt6797/ |
D | mt6797-afe-clk.c | 36 struct mt6797_afe_private *afe_priv = afe->platform_priv; in mt6797_init_clock() local 39 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt6797_init_clock() 41 if (!afe_priv->clk) in mt6797_init_clock() 45 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt6797_init_clock() 46 if (IS_ERR(afe_priv->clk[i])) { in mt6797_init_clock() 49 PTR_ERR(afe_priv->clk[i])); in mt6797_init_clock() 50 return PTR_ERR(afe_priv->clk[i]); in mt6797_init_clock() 59 struct mt6797_afe_private *afe_priv = afe->platform_priv; in mt6797_afe_enable_clock() local 62 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUD]); in mt6797_afe_enable_clock() 69 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUD_26M]); in mt6797_afe_enable_clock() [all …]
|
D | mt6797-afe-pcm.c | 750 struct mt6797_afe_private *afe_priv; in mt6797_afe_pcm_dev_probe() local 758 afe->platform_priv = devm_kzalloc(&pdev->dev, sizeof(*afe_priv), in mt6797_afe_pcm_dev_probe() 763 afe_priv = afe->platform_priv; in mt6797_afe_pcm_dev_probe()
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt2701/ |
D | mt2701-afe-clock-ctrl.c | 27 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_init_clock() local 31 afe_priv->base_ck[i] = devm_clk_get(afe->dev, base_clks[i]); in mt2701_init_clock() 32 if (IS_ERR(afe_priv->base_ck[i])) { in mt2701_init_clock() 34 return PTR_ERR(afe_priv->base_ck[i]); in mt2701_init_clock() 39 for (i = 0; i < afe_priv->soc->i2s_num; i++) { in mt2701_init_clock() 40 struct mt2701_i2s_path *i2s_path = &afe_priv->i2s_path[i]; in mt2701_init_clock() 90 afe_priv->mrgif_ck = devm_clk_get(afe->dev, "audio_mrgif_pd"); in mt2701_init_clock() 91 if (IS_ERR(afe_priv->mrgif_ck)) { in mt2701_init_clock() 92 if (PTR_ERR(afe_priv->mrgif_ck) == -EPROBE_DEFER) in mt2701_init_clock() 95 afe_priv->mrgif_ck = NULL; in mt2701_init_clock() [all …]
|
D | mt2701-afe-pcm.c | 86 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_dai_num_to_i2s() local 89 if (val < 0 || val >= afe_priv->soc->i2s_num) { in mt2701_dai_num_to_i2s() 112 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_startup() local 114 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_startup() 147 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_shutdown() local 150 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_shutdown() 155 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_shutdown() 178 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_i2s_path_enable() local 202 if (afe_priv->soc->has_one_heart_mode) { in mt2701_i2s_path_enable() 235 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_prepare() local [all …]
|
/kernel/linux/linux-5.10/sound/soc/mediatek/mt8173/ |
D | mt8173-afe-pcm.c | 327 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_i2s_prepare() local 330 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S1_M], in mt8173_afe_i2s_prepare() 332 mt8173_afe_dais_set_clks(afe, afe_priv->clocks[MT8173_CLK_I2S2_M], in mt8173_afe_i2s_prepare() 348 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_startup() local 353 mt8173_afe_dais_enable_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_startup() 354 afe_priv->clocks[MT8173_CLK_I2S3_B]); in mt8173_afe_hdmi_startup() 362 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_shutdown() local 367 mt8173_afe_dais_disable_clks(afe, afe_priv->clocks[MT8173_CLK_I2S3_M], in mt8173_afe_hdmi_shutdown() 368 afe_priv->clocks[MT8173_CLK_I2S3_B]); in mt8173_afe_hdmi_shutdown() 376 struct mt8173_afe_private *afe_priv = afe->platform_priv; in mt8173_afe_hdmi_prepare() local [all …]
|