Lines Matching full:links
1385 struct snd_soc_dai_link *links; in acp_sofdsp_dai_links_create() local
1399 links = devm_kcalloc(dev, num_links, sizeof(struct snd_soc_dai_link), GFP_KERNEL); in acp_sofdsp_dai_links_create()
1400 if (!links) in acp_sofdsp_dai_links_create()
1404 links[i].name = "acp-headset-codec"; in acp_sofdsp_dai_links_create()
1405 links[i].id = HEADSET_BE_ID; in acp_sofdsp_dai_links_create()
1406 links[i].cpus = sof_sp; in acp_sofdsp_dai_links_create()
1407 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create()
1408 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
1409 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
1410 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
1411 links[i].dpcm_capture = 1; in acp_sofdsp_dai_links_create()
1412 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
1413 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
1416 links[i].codecs = &snd_soc_dummy_dlc; in acp_sofdsp_dai_links_create()
1417 links[i].num_codecs = 1; in acp_sofdsp_dai_links_create()
1420 links[i].codecs = rt5682; in acp_sofdsp_dai_links_create()
1421 links[i].num_codecs = ARRAY_SIZE(rt5682); in acp_sofdsp_dai_links_create()
1422 links[i].init = acp_card_rt5682_init; in acp_sofdsp_dai_links_create()
1423 links[i].ops = &acp_card_rt5682_ops; in acp_sofdsp_dai_links_create()
1426 links[i].codecs = rt5682s; in acp_sofdsp_dai_links_create()
1427 links[i].num_codecs = ARRAY_SIZE(rt5682s); in acp_sofdsp_dai_links_create()
1428 links[i].init = acp_card_rt5682s_init; in acp_sofdsp_dai_links_create()
1429 links[i].ops = &acp_card_rt5682s_ops; in acp_sofdsp_dai_links_create()
1432 links[i].codecs = nau8821; in acp_sofdsp_dai_links_create()
1433 links[i].num_codecs = ARRAY_SIZE(nau8821); in acp_sofdsp_dai_links_create()
1434 links[i].init = acp_8821_init; in acp_sofdsp_dai_links_create()
1435 links[i].ops = &acp_8821_ops; in acp_sofdsp_dai_links_create()
1441 links[i].name = "acp-headset-codec"; in acp_sofdsp_dai_links_create()
1442 links[i].id = HEADSET_BE_ID; in acp_sofdsp_dai_links_create()
1443 links[i].cpus = sof_hs; in acp_sofdsp_dai_links_create()
1444 links[i].num_cpus = ARRAY_SIZE(sof_hs); in acp_sofdsp_dai_links_create()
1445 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
1446 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
1447 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
1448 links[i].dpcm_capture = 1; in acp_sofdsp_dai_links_create()
1449 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
1450 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
1453 links[i].codecs = &snd_soc_dummy_dlc; in acp_sofdsp_dai_links_create()
1454 links[i].num_codecs = 1; in acp_sofdsp_dai_links_create()
1457 links[i].codecs = nau8825; in acp_sofdsp_dai_links_create()
1458 links[i].num_codecs = ARRAY_SIZE(nau8825); in acp_sofdsp_dai_links_create()
1459 links[i].init = acp_card_nau8825_init; in acp_sofdsp_dai_links_create()
1460 links[i].ops = &acp_card_nau8825_ops; in acp_sofdsp_dai_links_create()
1463 links[i].codecs = rt5682s; in acp_sofdsp_dai_links_create()
1464 links[i].num_codecs = ARRAY_SIZE(rt5682s); in acp_sofdsp_dai_links_create()
1465 links[i].init = acp_card_rt5682s_init; in acp_sofdsp_dai_links_create()
1466 links[i].ops = &acp_card_rt5682s_ops; in acp_sofdsp_dai_links_create()
1472 links[i].name = "acp-amp-codec"; in acp_sofdsp_dai_links_create()
1473 links[i].id = AMP_BE_ID; in acp_sofdsp_dai_links_create()
1475 links[i].cpus = sof_sp; in acp_sofdsp_dai_links_create()
1476 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create()
1478 links[i].cpus = sof_sp_virtual; in acp_sofdsp_dai_links_create()
1479 links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual); in acp_sofdsp_dai_links_create()
1481 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
1482 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
1483 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
1484 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
1485 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
1488 links[i].codecs = &snd_soc_dummy_dlc; in acp_sofdsp_dai_links_create()
1489 links[i].num_codecs = 1; in acp_sofdsp_dai_links_create()
1492 links[i].codecs = rt1019; in acp_sofdsp_dai_links_create()
1493 links[i].num_codecs = ARRAY_SIZE(rt1019); in acp_sofdsp_dai_links_create()
1494 links[i].ops = &acp_card_rt1019_ops; in acp_sofdsp_dai_links_create()
1495 links[i].init = acp_card_rt1019_init; in acp_sofdsp_dai_links_create()
1500 links[i].codecs = max98360a; in acp_sofdsp_dai_links_create()
1501 links[i].num_codecs = ARRAY_SIZE(max98360a); in acp_sofdsp_dai_links_create()
1502 links[i].ops = &acp_card_maxim_ops; in acp_sofdsp_dai_links_create()
1503 links[i].init = acp_card_maxim_init; in acp_sofdsp_dai_links_create()
1509 links[i].name = "acp-amp-codec"; in acp_sofdsp_dai_links_create()
1510 links[i].id = AMP_BE_ID; in acp_sofdsp_dai_links_create()
1511 links[i].cpus = sof_hs_virtual; in acp_sofdsp_dai_links_create()
1512 links[i].num_cpus = ARRAY_SIZE(sof_hs_virtual); in acp_sofdsp_dai_links_create()
1513 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
1514 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
1515 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
1516 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
1517 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
1520 links[i].codecs = &snd_soc_dummy_dlc; in acp_sofdsp_dai_links_create()
1521 links[i].num_codecs = 1; in acp_sofdsp_dai_links_create()
1524 links[i].codecs = max98360a; in acp_sofdsp_dai_links_create()
1525 links[i].num_codecs = ARRAY_SIZE(max98360a); in acp_sofdsp_dai_links_create()
1526 links[i].ops = &acp_card_maxim_ops; in acp_sofdsp_dai_links_create()
1527 links[i].init = acp_card_maxim_init; in acp_sofdsp_dai_links_create()
1530 links[i].dpcm_capture = 1; in acp_sofdsp_dai_links_create()
1531 links[i].codecs = max98388; in acp_sofdsp_dai_links_create()
1532 links[i].num_codecs = ARRAY_SIZE(max98388); in acp_sofdsp_dai_links_create()
1533 links[i].ops = &acp_max98388_ops; in acp_sofdsp_dai_links_create()
1534 links[i].init = acp_card_max98388_init; in acp_sofdsp_dai_links_create()
1539 links[i].codecs = rt1019; in acp_sofdsp_dai_links_create()
1540 links[i].num_codecs = ARRAY_SIZE(rt1019); in acp_sofdsp_dai_links_create()
1541 links[i].ops = &acp_card_rt1019_ops; in acp_sofdsp_dai_links_create()
1542 links[i].init = acp_card_rt1019_init; in acp_sofdsp_dai_links_create()
1550 links[i].name = "acp-bt-codec"; in acp_sofdsp_dai_links_create()
1551 links[i].id = BT_BE_ID; in acp_sofdsp_dai_links_create()
1552 links[i].cpus = sof_bt; in acp_sofdsp_dai_links_create()
1553 links[i].num_cpus = ARRAY_SIZE(sof_bt); in acp_sofdsp_dai_links_create()
1554 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
1555 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
1556 links[i].dpcm_playback = 1; in acp_sofdsp_dai_links_create()
1557 links[i].dpcm_capture = 1; in acp_sofdsp_dai_links_create()
1558 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
1559 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
1562 links[i].codecs = &snd_soc_dummy_dlc; in acp_sofdsp_dai_links_create()
1563 links[i].num_codecs = 1; in acp_sofdsp_dai_links_create()
1569 links[i].name = "acp-dmic-codec"; in acp_sofdsp_dai_links_create()
1570 links[i].id = DMIC_BE_ID; in acp_sofdsp_dai_links_create()
1571 links[i].codecs = dmic_codec; in acp_sofdsp_dai_links_create()
1572 links[i].num_codecs = ARRAY_SIZE(dmic_codec); in acp_sofdsp_dai_links_create()
1573 links[i].cpus = sof_dmic; in acp_sofdsp_dai_links_create()
1574 links[i].num_cpus = ARRAY_SIZE(sof_dmic); in acp_sofdsp_dai_links_create()
1575 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create()
1576 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create()
1577 links[i].dpcm_capture = 1; in acp_sofdsp_dai_links_create()
1578 links[i].nonatomic = true; in acp_sofdsp_dai_links_create()
1579 links[i].no_pcm = 1; in acp_sofdsp_dai_links_create()
1582 card->dai_link = links; in acp_sofdsp_dai_links_create()
1592 struct snd_soc_dai_link *links; in acp_legacy_dai_links_create() local
1605 links = devm_kcalloc(dev, num_links, sizeof(struct snd_soc_dai_link), GFP_KERNEL); in acp_legacy_dai_links_create()
1606 if (!links) in acp_legacy_dai_links_create()
1610 links[i].name = "acp-headset-codec"; in acp_legacy_dai_links_create()
1611 links[i].id = HEADSET_BE_ID; in acp_legacy_dai_links_create()
1612 links[i].cpus = i2s_sp; in acp_legacy_dai_links_create()
1613 links[i].num_cpus = ARRAY_SIZE(i2s_sp); in acp_legacy_dai_links_create()
1614 links[i].platforms = platform_component; in acp_legacy_dai_links_create()
1615 links[i].num_platforms = ARRAY_SIZE(platform_component); in acp_legacy_dai_links_create()
1616 links[i].dpcm_playback = 1; in acp_legacy_dai_links_create()
1617 links[i].dpcm_capture = 1; in acp_legacy_dai_links_create()
1620 links[i].codecs = &snd_soc_dummy_dlc; in acp_legacy_dai_links_create()
1621 links[i].num_codecs = 1; in acp_legacy_dai_links_create()
1624 links[i].codecs = rt5682; in acp_legacy_dai_links_create()
1625 links[i].num_codecs = ARRAY_SIZE(rt5682); in acp_legacy_dai_links_create()
1626 links[i].init = acp_card_rt5682_init; in acp_legacy_dai_links_create()
1627 links[i].ops = &acp_card_rt5682_ops; in acp_legacy_dai_links_create()
1630 links[i].codecs = rt5682s; in acp_legacy_dai_links_create()
1631 links[i].num_codecs = ARRAY_SIZE(rt5682s); in acp_legacy_dai_links_create()
1632 links[i].init = acp_card_rt5682s_init; in acp_legacy_dai_links_create()
1633 links[i].ops = &acp_card_rt5682s_ops; in acp_legacy_dai_links_create()
1636 rc = acp_ops_configure_link(card, &links[i]); in acp_legacy_dai_links_create()
1646 links[i].name = "acp-headset-codec"; in acp_legacy_dai_links_create()
1647 links[i].id = HEADSET_BE_ID; in acp_legacy_dai_links_create()
1648 links[i].cpus = i2s_hs; in acp_legacy_dai_links_create()
1649 links[i].num_cpus = ARRAY_SIZE(i2s_hs); in acp_legacy_dai_links_create()
1651 links[i].platforms = platform_rmb_component; in acp_legacy_dai_links_create()
1652 links[i].num_platforms = ARRAY_SIZE(platform_rmb_component); in acp_legacy_dai_links_create()
1654 links[i].platforms = platform_acp63_component; in acp_legacy_dai_links_create()
1655 links[i].num_platforms = ARRAY_SIZE(platform_acp63_component); in acp_legacy_dai_links_create()
1657 links[i].platforms = platform_component; in acp_legacy_dai_links_create()
1658 links[i].num_platforms = ARRAY_SIZE(platform_component); in acp_legacy_dai_links_create()
1660 links[i].dpcm_playback = 1; in acp_legacy_dai_links_create()
1661 links[i].dpcm_capture = 1; in acp_legacy_dai_links_create()
1664 links[i].codecs = &snd_soc_dummy_dlc; in acp_legacy_dai_links_create()
1665 links[i].num_codecs = 1; in acp_legacy_dai_links_create()
1668 links[i].codecs = nau8825; in acp_legacy_dai_links_create()
1669 links[i].num_codecs = ARRAY_SIZE(nau8825); in acp_legacy_dai_links_create()
1670 links[i].init = acp_card_nau8825_init; in acp_legacy_dai_links_create()
1671 links[i].ops = &acp_card_nau8825_ops; in acp_legacy_dai_links_create()
1674 links[i].codecs = rt5682s; in acp_legacy_dai_links_create()
1675 links[i].num_codecs = ARRAY_SIZE(rt5682s); in acp_legacy_dai_links_create()
1676 links[i].init = acp_card_rt5682s_init; in acp_legacy_dai_links_create()
1677 links[i].ops = &acp_card_rt5682s_ops; in acp_legacy_dai_links_create()
1683 links[i].name = "acp-amp-codec"; in acp_legacy_dai_links_create()
1684 links[i].id = AMP_BE_ID; in acp_legacy_dai_links_create()
1685 links[i].cpus = i2s_sp; in acp_legacy_dai_links_create()
1686 links[i].num_cpus = ARRAY_SIZE(i2s_sp); in acp_legacy_dai_links_create()
1687 links[i].platforms = platform_component; in acp_legacy_dai_links_create()
1688 links[i].num_platforms = ARRAY_SIZE(platform_component); in acp_legacy_dai_links_create()
1689 links[i].dpcm_playback = 1; in acp_legacy_dai_links_create()
1692 links[i].codecs = &snd_soc_dummy_dlc; in acp_legacy_dai_links_create()
1693 links[i].num_codecs = 1; in acp_legacy_dai_links_create()
1696 links[i].codecs = rt1019; in acp_legacy_dai_links_create()
1697 links[i].num_codecs = ARRAY_SIZE(rt1019); in acp_legacy_dai_links_create()
1698 links[i].ops = &acp_card_rt1019_ops; in acp_legacy_dai_links_create()
1699 links[i].init = acp_card_rt1019_init; in acp_legacy_dai_links_create()
1704 links[i].codecs = max98360a; in acp_legacy_dai_links_create()
1705 links[i].num_codecs = ARRAY_SIZE(max98360a); in acp_legacy_dai_links_create()
1706 links[i].ops = &acp_card_maxim_ops; in acp_legacy_dai_links_create()
1707 links[i].init = acp_card_maxim_init; in acp_legacy_dai_links_create()
1713 links[i].name = "acp-amp-codec"; in acp_legacy_dai_links_create()
1714 links[i].id = AMP_BE_ID; in acp_legacy_dai_links_create()
1715 links[i].cpus = i2s_hs; in acp_legacy_dai_links_create()
1716 links[i].num_cpus = ARRAY_SIZE(i2s_hs); in acp_legacy_dai_links_create()
1718 links[i].platforms = platform_rmb_component; in acp_legacy_dai_links_create()
1719 links[i].num_platforms = ARRAY_SIZE(platform_rmb_component); in acp_legacy_dai_links_create()
1721 links[i].platforms = platform_acp63_component; in acp_legacy_dai_links_create()
1722 links[i].num_platforms = ARRAY_SIZE(platform_acp63_component); in acp_legacy_dai_links_create()
1724 links[i].platforms = platform_component; in acp_legacy_dai_links_create()
1725 links[i].num_platforms = ARRAY_SIZE(platform_component); in acp_legacy_dai_links_create()
1727 links[i].dpcm_playback = 1; in acp_legacy_dai_links_create()
1730 links[i].codecs = &snd_soc_dummy_dlc; in acp_legacy_dai_links_create()
1731 links[i].num_codecs = 1; in acp_legacy_dai_links_create()
1734 links[i].codecs = max98360a; in acp_legacy_dai_links_create()
1735 links[i].num_codecs = ARRAY_SIZE(max98360a); in acp_legacy_dai_links_create()
1736 links[i].ops = &acp_card_maxim_ops; in acp_legacy_dai_links_create()
1737 links[i].init = acp_card_maxim_init; in acp_legacy_dai_links_create()
1740 links[i].codecs = rt1019; in acp_legacy_dai_links_create()
1741 links[i].num_codecs = ARRAY_SIZE(rt1019); in acp_legacy_dai_links_create()
1742 links[i].ops = &acp_card_rt1019_ops; in acp_legacy_dai_links_create()
1743 links[i].init = acp_card_rt1019_init; in acp_legacy_dai_links_create()
1751 links[i].name = "acp-dmic-codec"; in acp_legacy_dai_links_create()
1752 links[i].id = DMIC_BE_ID; in acp_legacy_dai_links_create()
1754 links[i].codecs = dmic_codec; in acp_legacy_dai_links_create()
1755 links[i].num_codecs = ARRAY_SIZE(dmic_codec); in acp_legacy_dai_links_create()
1758 links[i].codecs = &snd_soc_dummy_dlc; in acp_legacy_dai_links_create()
1759 links[i].num_codecs = 1; in acp_legacy_dai_links_create()
1761 links[i].cpus = pdm_dmic; in acp_legacy_dai_links_create()
1762 links[i].num_cpus = ARRAY_SIZE(pdm_dmic); in acp_legacy_dai_links_create()
1764 links[i].platforms = platform_rmb_component; in acp_legacy_dai_links_create()
1765 links[i].num_platforms = ARRAY_SIZE(platform_rmb_component); in acp_legacy_dai_links_create()
1767 links[i].platforms = platform_acp63_component; in acp_legacy_dai_links_create()
1768 links[i].num_platforms = ARRAY_SIZE(platform_acp63_component); in acp_legacy_dai_links_create()
1770 links[i].platforms = platform_acp70_component; in acp_legacy_dai_links_create()
1771 links[i].num_platforms = ARRAY_SIZE(platform_acp70_component); in acp_legacy_dai_links_create()
1773 links[i].platforms = platform_component; in acp_legacy_dai_links_create()
1774 links[i].num_platforms = ARRAY_SIZE(platform_component); in acp_legacy_dai_links_create()
1776 links[i].ops = &acp_card_dmic_ops; in acp_legacy_dai_links_create()
1777 links[i].dpcm_capture = 1; in acp_legacy_dai_links_create()
1780 card->dai_link = links; in acp_legacy_dai_links_create()