Lines Matching refs:dai

28 #include "../common/mtk-afe-fe-dai.h"
230 mt8188_afe_found_cm(struct snd_soc_dai *dai)
232 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
235 if (mt8188_afe_memif_is_ul(dai->id) == 0)
238 switch (dai->id) {
253 dev_dbg(afe->dev, "%s, memif %d cannot find CM!\n", __func__, dai->id);
301 struct snd_soc_dai *dai)
305 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
309 ret = mtk_afe_fe_startup(substream, dai);
328 struct snd_soc_dai *dai)
330 mtk_afe_fe_shutdown(substream, dai);
335 struct snd_soc_dai *dai)
338 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
342 const struct mt8188_afe_channel_merge *cm = mt8188_afe_found_cm(dai);
353 return mtk_afe_fe_hw_params(substream, params, dai);
357 struct snd_soc_dai *dai)
359 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
360 const struct mt8188_afe_channel_merge *cm = mt8188_afe_found_cm(dai);
3073 struct mtk_base_afe_dai *dai;
3075 dai = devm_kzalloc(afe->dev, sizeof(*dai), GFP_KERNEL);
3076 if (!dai)
3079 list_add(&dai->list, &afe->sub_dais);
3081 dai->dai_drivers = mt8188_memif_dai_driver;
3082 dai->num_dai_drivers = ARRAY_SIZE(mt8188_memif_dai_driver);
3084 dai->dapm_widgets = mt8188_memif_widgets;
3085 dai->num_dapm_widgets = ARRAY_SIZE(mt8188_memif_widgets);
3086 dai->dapm_routes = mt8188_memif_routes;
3087 dai->num_dapm_routes = ARRAY_SIZE(mt8188_memif_routes);
3088 dai->controls = mt8188_memif_controls;
3089 dai->num_controls = ARRAY_SIZE(mt8188_memif_controls);
3307 return dev_err_probe(dev, ret, "dai register i %d fail\n", i);