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()
314 links[*id].no_pcm = 1; in create_spk_amp_dai_links()
315 links[*id].cpus = &cpus[*id]; in create_spk_amp_dai_links()
316 links[*id].num_cpus = 1; in create_spk_amp_dai_links()
318 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_spk_amp_dai_links()
320 if (!links[*id].cpus->dai_name) { in create_spk_amp_dai_links()
332 struct snd_soc_dai_link *links, in create_hp_codec_dai_links() argument
337 links[*id].name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", in create_hp_codec_dai_links()
339 if (!links[*id].name) in create_hp_codec_dai_links()
342 links[*id].id = *id; in create_hp_codec_dai_links()
343 links[*id].codecs = cs42l42_component; in create_hp_codec_dai_links()
344 links[*id].num_codecs = ARRAY_SIZE(cs42l42_component); in create_hp_codec_dai_links()
345 links[*id].platforms = platform_component; in create_hp_codec_dai_links()
346 links[*id].num_platforms = ARRAY_SIZE(platform_component); in create_hp_codec_dai_links()
347 links[*id].init = sof_cs42l42_init; in create_hp_codec_dai_links()
348 links[*id].exit = sof_cs42l42_exit; in create_hp_codec_dai_links()
349 links[*id].ops = &sof_cs42l42_ops; in create_hp_codec_dai_links()
350 links[*id].dpcm_playback = 1; in create_hp_codec_dai_links()
351 links[*id].dpcm_capture = 1; in create_hp_codec_dai_links()
352 links[*id].no_pcm = 1; in create_hp_codec_dai_links()
353 links[*id].cpus = &cpus[*id]; in create_hp_codec_dai_links()
354 links[*id].num_cpus = 1; in create_hp_codec_dai_links()
356 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_hp_codec_dai_links()
359 if (!links[*id].cpus->dai_name) in create_hp_codec_dai_links()
371 struct snd_soc_dai_link *links, in create_dmic_dai_links() argument
382 links[*id].name = "dmic01"; in create_dmic_dai_links()
383 links[*id].cpus = &cpus[*id]; in create_dmic_dai_links()
384 links[*id].cpus->dai_name = "DMIC01 Pin"; in create_dmic_dai_links()
385 links[*id].init = dmic_init; in create_dmic_dai_links()
388 links[*id + 1].name = "dmic16k"; in create_dmic_dai_links()
389 links[*id + 1].cpus = &cpus[*id + 1]; in create_dmic_dai_links()
390 links[*id + 1].cpus->dai_name = "DMIC16k Pin"; in create_dmic_dai_links()
395 links[*id].id = *id; in create_dmic_dai_links()
396 links[*id].num_cpus = 1; in create_dmic_dai_links()
397 links[*id].codecs = dmic_component; in create_dmic_dai_links()
398 links[*id].num_codecs = ARRAY_SIZE(dmic_component); in create_dmic_dai_links()
399 links[*id].platforms = platform_component; in create_dmic_dai_links()
400 links[*id].num_platforms = ARRAY_SIZE(platform_component); in create_dmic_dai_links()
401 links[*id].ignore_suspend = 1; in create_dmic_dai_links()
402 links[*id].dpcm_capture = 1; in create_dmic_dai_links()
403 links[*id].no_pcm = 1; in create_dmic_dai_links()
412 struct snd_soc_dai_link *links, in create_hdmi_dai_links() argument
430 links[*id].name = devm_kasprintf(dev, GFP_KERNEL, in create_hdmi_dai_links()
432 if (!links[*id].name) in create_hdmi_dai_links()
435 links[*id].id = *id; in create_hdmi_dai_links()
436 links[*id].cpus = &cpus[*id]; in create_hdmi_dai_links()
437 links[*id].num_cpus = 1; in create_hdmi_dai_links()
438 links[*id].cpus->dai_name = devm_kasprintf(dev, in create_hdmi_dai_links()
442 if (!links[*id].cpus->dai_name) in create_hdmi_dai_links()
453 links[*id].codecs = &idisp_components[i - 1]; in create_hdmi_dai_links()
454 links[*id].num_codecs = 1; in create_hdmi_dai_links()
455 links[*id].platforms = platform_component; in create_hdmi_dai_links()
456 links[*id].num_platforms = ARRAY_SIZE(platform_component); in create_hdmi_dai_links()
457 links[*id].init = sof_hdmi_init; in create_hdmi_dai_links()
458 links[*id].dpcm_playback = 1; in create_hdmi_dai_links()
459 links[*id].no_pcm = 1; in create_hdmi_dai_links()
477 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local
480 links = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link) * in sof_card_dai_links_create()
484 if (!links || !cpus) in sof_card_dai_links_create()
494 ret = create_hp_codec_dai_links(dev, links, cpus, &id, ssp_codec); in sof_card_dai_links_create()
502 ret = create_spk_amp_dai_links(dev, links, cpus, &id, ssp_amp); in sof_card_dai_links_create()
510 ret = create_dmic_dai_links(dev, links, cpus, &id, dmic_be_num); in sof_card_dai_links_create()
518 ret = create_hdmi_dai_links(dev, links, cpus, &id, hdmi_num); in sof_card_dai_links_create()
535 return links; in sof_card_dai_links_create()