Lines Matching full:afe

3  * mtk-afe-platform-driver.c  --  Mediatek afe platform driver
13 #include "mtk-afe-platform-driver.h"
14 #include "mtk-base-afe.h"
16 int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe) in mtk_afe_combine_sub_dai() argument
22 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai()
26 dev_info(afe->dev, "%s(), num of dai %zd\n", __func__, num_dai_drivers); in mtk_afe_combine_sub_dai()
29 afe->num_dai_drivers = num_dai_drivers; in mtk_afe_combine_sub_dai()
30 afe->dai_drivers = devm_kcalloc(afe->dev, in mtk_afe_combine_sub_dai()
34 if (!afe->dai_drivers) in mtk_afe_combine_sub_dai()
37 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai()
39 memcpy(&afe->dai_drivers[dai_idx], in mtk_afe_combine_sub_dai()
51 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_add_sub_dai_control() local
54 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_add_sub_dai_control()
66 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_add_sub_dai_control()
84 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_pcm_pointer() local
85 struct mtk_base_afe_memif *memif = &afe->memif[snd_soc_rtd_to_cpu(rtd, 0)->id]; in mtk_afe_pcm_pointer()
87 struct regmap *regmap = afe->regmap; in mtk_afe_pcm_pointer()
88 struct device *dev = afe->dev; in mtk_afe_pcm_pointer()
120 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_pcm_new() local
122 size = afe->mtk_afe_hardware->buffer_bytes_max; in mtk_afe_pcm_new()
124 afe->dev, size, size); in mtk_afe_pcm_new()
131 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); in mtk_afe_component_probe() local
134 snd_soc_component_init_regmap(component, afe->regmap); in mtk_afe_component_probe()
137 if (afe->sub_dais.next && afe->sub_dais.prev) { in mtk_afe_component_probe()