Lines Matching refs:link_data

117 	struct dai_link_data *link_data;  member
230 static bool format_is_tdm(struct dai_link_data *link_data) in format_is_tdm() argument
232 if (link_data->slots > 2) in format_is_tdm()
259 struct dai_link_data *link_data = &data->link_data[rtd->num]; in akcodec_get_mclk_rate() local
264 if (format_is_tdm(link_data)) { in akcodec_get_mclk_rate()
279 width *= link_data->one2one_ratio ? 1 : 2; in akcodec_get_mclk_rate()
297 struct dai_link_data *link_data = &data->link_data[rtd->num]; in imx_aif_hw_params() local
306 slots = link_data->slots; in imx_aif_hw_params()
307 slot_width = link_data->slot_width; in imx_aif_hw_params()
309 if (!format_is_tdm(link_data)) { in imx_aif_hw_params()
368 ret = snd_soc_dai_set_sysclk(cpu_dai, link_data->cpu_sysclk_id, mclk_freq, in imx_aif_hw_params()
380 struct dai_link_data *link_data = r->private; in ak5558_hw_rule_rate() local
387 fs *= link_data->slots; in ak5558_hw_rule_rate()
393 mclk_freq *= link_data->one2one_ratio ? 1 : 2; in ak5558_hw_rule_rate()
412 struct dai_link_data *link_data = &data->link_data[rtd->num]; in imx_aif_startup() local
417 if (format_is_tdm(link_data)) { in imx_aif_startup()
448 ak5558_hw_rule_rate, link_data, in imx_aif_startup()
493 struct dai_link_data *link_data; in imx_card_parse_of() local
520 data->link_data = devm_kcalloc(dev, num_links, sizeof(*link), GFP_KERNEL); in imx_card_parse_of()
521 if (!data->link_data) in imx_card_parse_of()
526 link_data = data->link_data; in imx_card_parse_of()
563 link_data->cpu_sysclk_id = FSL_SAI_CLK_MAST1; in imx_card_parse_of()
567 link_data->one2one_ratio = true; in imx_card_parse_of()
684 &link_data->slots, in imx_card_parse_of()
685 &link_data->slot_width); in imx_card_parse_of()
687 if (!link_data->slots) in imx_card_parse_of()
688 link_data->slots = 2; in imx_card_parse_of()
690 if (!link_data->slot_width) in imx_card_parse_of()
691 link_data->slot_width = 32; in imx_card_parse_of()
696 link_data++; in imx_card_parse_of()