Lines Matching refs:links
282 struct snd_soc_dai_link *links, in create_spk_amp_dai_links() argument
292 links[*id].name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", in create_spk_amp_dai_links()
294 if (!links[*id].name) { in create_spk_amp_dai_links()
299 links[*id].id = *id; in create_spk_amp_dai_links()
302 max_98357a_dai_link(&links[*id]); in create_spk_amp_dai_links()
304 max_98360a_dai_link(&links[*id]); in create_spk_amp_dai_links()
311 links[*id].platforms = platform_component; in create_spk_amp_dai_links()
312 links[*id].num_platforms = ARRAY_SIZE(platform_component); in create_spk_amp_dai_links()
313 links[*id].dpcm_playback = 1; in create_spk_amp_dai_links()
315 links[*id].dpcm_capture = 1; in create_spk_amp_dai_links()
317 links[*id].no_pcm = 1; in create_spk_amp_dai_links()
318 links[*id].cpus = &cpus[*id]; in create_spk_amp_dai_links()
319 links[*id].num_cpus = 1; in create_spk_amp_dai_links()
321 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_spk_amp_dai_links()
323 if (!links[*id].cpus->dai_name) { in create_spk_amp_dai_links()
335 struct snd_soc_dai_link *links, in create_hp_codec_dai_links() argument
340 links[*id].name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", in create_hp_codec_dai_links()
342 if (!links[*id].name) in create_hp_codec_dai_links()
345 links[*id].id = *id; in create_hp_codec_dai_links()
346 links[*id].codecs = cs42l42_component; in create_hp_codec_dai_links()
347 links[*id].num_codecs = ARRAY_SIZE(cs42l42_component); in create_hp_codec_dai_links()
348 links[*id].platforms = platform_component; in create_hp_codec_dai_links()
349 links[*id].num_platforms = ARRAY_SIZE(platform_component); in create_hp_codec_dai_links()
350 links[*id].init = sof_cs42l42_init; in create_hp_codec_dai_links()
351 links[*id].exit = sof_cs42l42_exit; in create_hp_codec_dai_links()
352 links[*id].ops = &sof_cs42l42_ops; in create_hp_codec_dai_links()
353 links[*id].dpcm_playback = 1; in create_hp_codec_dai_links()
354 links[*id].dpcm_capture = 1; in create_hp_codec_dai_links()
355 links[*id].no_pcm = 1; in create_hp_codec_dai_links()
356 links[*id].cpus = &cpus[*id]; in create_hp_codec_dai_links()
357 links[*id].num_cpus = 1; in create_hp_codec_dai_links()
359 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_hp_codec_dai_links()
362 if (!links[*id].cpus->dai_name) in create_hp_codec_dai_links()
374 struct snd_soc_dai_link *links, in create_dmic_dai_links() argument
385 links[*id].name = "dmic01"; in create_dmic_dai_links()
386 links[*id].cpus = &cpus[*id]; in create_dmic_dai_links()
387 links[*id].cpus->dai_name = "DMIC01 Pin"; in create_dmic_dai_links()
388 links[*id].init = dmic_init; in create_dmic_dai_links()
391 links[*id + 1].name = "dmic16k"; in create_dmic_dai_links()
392 links[*id + 1].cpus = &cpus[*id + 1]; in create_dmic_dai_links()
393 links[*id + 1].cpus->dai_name = "DMIC16k Pin"; in create_dmic_dai_links()
398 links[*id].id = *id; in create_dmic_dai_links()
399 links[*id].num_cpus = 1; in create_dmic_dai_links()
400 links[*id].codecs = dmic_component; in create_dmic_dai_links()
401 links[*id].num_codecs = ARRAY_SIZE(dmic_component); in create_dmic_dai_links()
402 links[*id].platforms = platform_component; in create_dmic_dai_links()
403 links[*id].num_platforms = ARRAY_SIZE(platform_component); in create_dmic_dai_links()
404 links[*id].ignore_suspend = 1; in create_dmic_dai_links()
405 links[*id].dpcm_capture = 1; in create_dmic_dai_links()
406 links[*id].no_pcm = 1; in create_dmic_dai_links()
415 struct snd_soc_dai_link *links, in create_hdmi_dai_links() argument
433 links[*id].name = devm_kasprintf(dev, GFP_KERNEL, in create_hdmi_dai_links()
435 if (!links[*id].name) in create_hdmi_dai_links()
438 links[*id].id = *id; in create_hdmi_dai_links()
439 links[*id].cpus = &cpus[*id]; in create_hdmi_dai_links()
440 links[*id].num_cpus = 1; in create_hdmi_dai_links()
441 links[*id].cpus->dai_name = devm_kasprintf(dev, in create_hdmi_dai_links()
445 if (!links[*id].cpus->dai_name) in create_hdmi_dai_links()
456 links[*id].codecs = &idisp_components[i - 1]; in create_hdmi_dai_links()
457 links[*id].num_codecs = 1; in create_hdmi_dai_links()
458 links[*id].platforms = platform_component; in create_hdmi_dai_links()
459 links[*id].num_platforms = ARRAY_SIZE(platform_component); in create_hdmi_dai_links()
460 links[*id].init = sof_hdmi_init; in create_hdmi_dai_links()
461 links[*id].dpcm_playback = 1; in create_hdmi_dai_links()
462 links[*id].no_pcm = 1; in create_hdmi_dai_links()
480 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local
483 links = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link) * in sof_card_dai_links_create()
487 if (!links || !cpus) in sof_card_dai_links_create()
497 ret = create_hp_codec_dai_links(dev, links, cpus, &id, ssp_codec); in sof_card_dai_links_create()
505 ret = create_spk_amp_dai_links(dev, links, cpus, &id, ssp_amp); in sof_card_dai_links_create()
513 ret = create_dmic_dai_links(dev, links, cpus, &id, dmic_be_num); in sof_card_dai_links_create()
521 ret = create_hdmi_dai_links(dev, links, cpus, &id, hdmi_num); in sof_card_dai_links_create()
538 return links; in sof_card_dai_links_create()