Lines Matching refs:dai_link

342 		const char *dai_link, int stream)  in snd_soc_get_dai_substream()  argument
347 if (rtd->dai_link->no_pcm && in snd_soc_get_dai_substream()
348 !strcmp(rtd->dai_link->name, dai_link)) in snd_soc_get_dai_substream()
351 dev_dbg(card->dev, "ASoC: failed to find dai link %s\n", dai_link); in snd_soc_get_dai_substream()
359 struct snd_soc_card *card, struct snd_soc_dai_link *dai_link) in soc_new_pcm_runtime() argument
369 rtd->dai_link = dai_link; in soc_new_pcm_runtime()
370 if (!rtd->dai_link->ops) in soc_new_pcm_runtime()
371 rtd->dai_link->ops = &null_snd_soc_ops; in soc_new_pcm_runtime()
373 rtd->codec_dais = kcalloc(dai_link->num_codecs, in soc_new_pcm_runtime()
413 const char *dai_link) in snd_soc_get_pcm_runtime() argument
418 if (!strcmp(rtd->dai_link->name, dai_link)) in snd_soc_get_pcm_runtime()
421 dev_dbg(card->dev, "ASoC: failed to find rtd %s\n", dai_link); in snd_soc_get_pcm_runtime()
460 if (rtd->dai_link->ignore_suspend) in snd_soc_suspend()
472 if (rtd->dai_link->ignore_suspend) in snd_soc_suspend()
484 if (rtd->dai_link->ignore_suspend) in snd_soc_suspend()
496 if (rtd->dai_link->ignore_suspend) in snd_soc_suspend()
555 if (rtd->dai_link->ignore_suspend) in snd_soc_suspend()
602 if (rtd->dai_link->ignore_suspend) in soc_resume_deferred()
616 if (rtd->dai_link->ignore_suspend) in soc_resume_deferred()
632 if (rtd->dai_link->ignore_suspend) in soc_resume_deferred()
645 if (rtd->dai_link->ignore_suspend) in soc_resume_deferred()
863 struct snd_soc_dai_link *dai_link) in soc_is_dai_link_bound() argument
868 if (rtd->dai_link == dai_link) in soc_is_dai_link_bound()
876 struct snd_soc_dai_link *dai_link) in soc_bind_dai_link() argument
883 if (dai_link->ignore) in soc_bind_dai_link()
886 dev_dbg(card->dev, "ASoC: binding %s\n", dai_link->name); in soc_bind_dai_link()
888 if (soc_is_dai_link_bound(card, dai_link)) { in soc_bind_dai_link()
890 dai_link->name); in soc_bind_dai_link()
894 rtd = soc_new_pcm_runtime(card, dai_link); in soc_bind_dai_link()
899 rtd->cpu_dai = snd_soc_find_dai(dai_link->cpus); in soc_bind_dai_link()
902 dai_link->cpus->dai_name); in soc_bind_dai_link()
908 rtd->num_codecs = dai_link->num_codecs; in soc_bind_dai_link()
909 for_each_link_codecs(dai_link, i, codec) { in soc_bind_dai_link()
924 for_each_link_platforms(dai_link, i, platform) { in soc_bind_dai_link()
1364 struct snd_soc_dai_link *dai_link) in snd_soc_add_dai_link() argument
1366 if (dai_link->dobj.type in snd_soc_add_dai_link()
1367 && dai_link->dobj.type != SND_SOC_DOBJ_DAI_LINK) { in snd_soc_add_dai_link()
1369 dai_link->dobj.type); in snd_soc_add_dai_link()
1378 if (dai_link->dobj.type && card->add_dai_link) in snd_soc_add_dai_link()
1379 card->add_dai_link(card, dai_link); in snd_soc_add_dai_link()
1382 list_add_tail(&dai_link->list, &card->dai_link_list); in snd_soc_add_dai_link()
1399 struct snd_soc_dai_link *dai_link) in snd_soc_remove_dai_link() argument
1401 if (dai_link->dobj.type in snd_soc_remove_dai_link()
1402 && dai_link->dobj.type != SND_SOC_DOBJ_DAI_LINK) { in snd_soc_remove_dai_link()
1404 dai_link->dobj.type); in snd_soc_remove_dai_link()
1413 if (dai_link->dobj.type && card->remove_dai_link) in snd_soc_remove_dai_link()
1414 card->remove_dai_link(card, dai_link); in snd_soc_remove_dai_link()
1416 list_del(&dai_link->list); in snd_soc_remove_dai_link()
1487 struct snd_soc_dai_link *dai_link = rtd->dai_link; in soc_link_init() local
1497 if (dai_link->init) { in soc_link_init()
1498 ret = dai_link->init(rtd); in soc_link_init()
1501 dai_link->name, ret); in soc_link_init()
1506 if (dai_link->dai_fmt) { in soc_link_init()
1507 ret = snd_soc_runtime_set_dai_fmt(rtd, dai_link->dai_fmt); in soc_link_init()
1512 ret = soc_rtd_init(rtd, dai_link->name); in soc_link_init()
1532 if (rtd->dai_link->no_pcm) in soc_link_init()
1535 num = rtd->dai_link->id; in soc_link_init()
1543 dai_link->stream_name); in soc_link_init()
1551 dai_link->stream_name, ret); in soc_link_init()
1851 struct snd_soc_dai_link *dai_link; in soc_check_tplg_fes() local
1869 for_each_card_prelinks(card, i, dai_link) { in soc_check_tplg_fes()
1872 if (dai_link->dynamic) { in soc_check_tplg_fes()
1873 dai_link->ignore = true; in soc_check_tplg_fes()
1878 card->dai_link[i].name); in soc_check_tplg_fes()
1881 if (!dai_link->platforms) { in soc_check_tplg_fes()
1885 dai_link->platforms->name = component->name; in soc_check_tplg_fes()
1888 dai_link->no_pcm = 1; in soc_check_tplg_fes()
1891 dai_link->be_hw_params_fixup = in soc_check_tplg_fes()
1898 if (!dai_link->stream_name) in soc_check_tplg_fes()
1899 dai_link->stream_name = dai_link->name; in soc_check_tplg_fes()
1948 struct snd_soc_dai_link *dai_link; in snd_soc_instantiate_card() local
1952 for_each_card_prelinks(card, i, dai_link) { in snd_soc_instantiate_card()
1953 ret = soc_init_dai_link(card, dai_link); in snd_soc_instantiate_card()
1956 dai_link->name, ret); in snd_soc_instantiate_card()
1969 for_each_card_prelinks(card, i, dai_link) { in snd_soc_instantiate_card()
1970 ret = soc_bind_dai_link(card, dai_link); in snd_soc_instantiate_card()
1981 for_each_card_prelinks(card, i, dai_link) { in snd_soc_instantiate_card()
1982 ret = snd_soc_add_dai_link(card, dai_link); in snd_soc_instantiate_card()
2035 for_each_card_links(card, dai_link) { in snd_soc_instantiate_card()
2036 if (soc_is_dai_link_bound(card, dai_link)) in snd_soc_instantiate_card()
2039 ret = soc_init_dai_link(card, dai_link); in snd_soc_instantiate_card()
2042 ret = soc_bind_dai_link(card, dai_link); in snd_soc_instantiate_card()
3398 void snd_soc_of_put_dai_link_codecs(struct snd_soc_dai_link *dai_link) in snd_soc_of_put_dai_link_codecs() argument
3403 for_each_link_codecs(dai_link, index, component) { in snd_soc_of_put_dai_link_codecs()
3428 struct snd_soc_dai_link *dai_link) in snd_soc_of_get_dai_link_codecs() argument
3451 dai_link->codecs = component; in snd_soc_of_get_dai_link_codecs()
3452 dai_link->num_codecs = num_codecs; in snd_soc_of_get_dai_link_codecs()
3455 for_each_link_codecs(dai_link, index, component) { in snd_soc_of_get_dai_link_codecs()
3468 snd_soc_of_put_dai_link_codecs(dai_link); in snd_soc_of_get_dai_link_codecs()
3469 dai_link->codecs = NULL; in snd_soc_of_get_dai_link_codecs()
3470 dai_link->num_codecs = 0; in snd_soc_of_get_dai_link_codecs()