| /sound/soc/ |
| A D | soc-core.c | 260 return !(dlc->dai_args || dlc->name || dlc->of_node); in snd_soc_dlc_component_is_empty() 265 return (dlc->name && dlc->of_node); in snd_soc_dlc_component_is_invalid() 270 return !(dlc->dai_args || dlc->dai_name); in snd_soc_dlc_dai_is_empty() 276 if (!dlc) in snd_soc_is_matching_dai() 279 if (dlc->dai_args) in snd_soc_is_matching_dai() 282 if (!dlc->dai_name) in snd_soc_is_matching_dai() 854 if (!dlc) in snd_soc_is_matching_component() 857 if (dlc->dai_args) { in snd_soc_is_matching_component() 868 if (dlc->of_node && component_of_node != dlc->of_node) in snd_soc_is_matching_component() 870 if (dlc->name && strcmp(component->name, dlc->name)) in snd_soc_is_matching_component() [all …]
|
| A D | soc-utils.c | 265 int snd_soc_dlc_is_dummy(struct snd_soc_dai_link_component *dlc) in snd_soc_dlc_is_dummy() argument 267 if (dlc == &snd_soc_dummy_dlc) in snd_soc_dlc_is_dummy() 270 if ((dlc->name && strcmp(dlc->name, snd_soc_dummy_dlc.name) == 0) || in snd_soc_dlc_is_dummy() 271 (dlc->dai_name && strcmp(dlc->dai_name, snd_soc_dummy_dlc.dai_name) == 0)) in snd_soc_dlc_is_dummy()
|
| /sound/soc/ti/ |
| A D | rx51.c | 319 .dlc = COMP_AUX("tlv320aic3x-codec.2-0019"), 322 .dlc = COMP_AUX("tpa6130a2.2-0060"), 332 .dlc = COMP_CODEC_CONF("tpa6130a2.2-0060"), 395 rx51_aux_dev[0].dlc.name = NULL; in rx51_soc_probe() 396 rx51_aux_dev[0].dlc.of_node = dai_node; in rx51_soc_probe() 397 rx51_codec_conf[0].dlc.name = NULL; in rx51_soc_probe() 398 rx51_codec_conf[0].dlc.of_node = dai_node; in rx51_soc_probe() 405 rx51_aux_dev[1].dlc.name = NULL; in rx51_soc_probe() 406 rx51_aux_dev[1].dlc.of_node = dai_node; in rx51_soc_probe() 407 rx51_codec_conf[1].dlc.name = NULL; in rx51_soc_probe() [all …]
|
| /sound/soc/sof/ |
| A D | nocodec.c | 27 struct snd_soc_dai_link_component *dlc; in sof_nocodec_bes_setup() local 35 dlc = devm_kcalloc(dev, 2, sizeof(*dlc), GFP_KERNEL); in sof_nocodec_bes_setup() 36 if (!dlc) in sof_nocodec_bes_setup() 46 links[i].cpus = &dlc[0]; in sof_nocodec_bes_setup() 48 links[i].platforms = &dlc[1]; in sof_nocodec_bes_setup()
|
| /sound/soc/fsl/ |
| A D | imx-hdmi.c | 103 struct snd_soc_dai_link_component *dlc; in imx_hdmi_probe() local 109 dlc = devm_kzalloc(&pdev->dev, 3 * sizeof(*dlc), GFP_KERNEL); in imx_hdmi_probe() 110 if (!dlc) in imx_hdmi_probe() 134 data->dai.cpus = &dlc[0]; in imx_hdmi_probe() 136 data->dai.platforms = &dlc[1]; in imx_hdmi_probe() 138 data->dai.codecs = &dlc[2]; in imx_hdmi_probe()
|
| A D | imx-rpmsg.c | 108 struct snd_soc_dai_link_component *dlc; in imx_rpmsg_probe() local 116 dlc = devm_kzalloc(&pdev->dev, 3 * sizeof(*dlc), GFP_KERNEL); in imx_rpmsg_probe() 117 if (!dlc) in imx_rpmsg_probe() 126 data->dai.cpus = &dlc[0]; in imx_rpmsg_probe() 128 data->dai.platforms = &dlc[1]; in imx_rpmsg_probe() 130 data->dai.codecs = &dlc[2]; in imx_rpmsg_probe()
|
| A D | imx-audmix.c | 191 struct snd_soc_dai_link_component *dlc; in imx_audmix_probe() local 194 dlc = devm_kcalloc(&pdev->dev, 2, sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe() 195 if (!dlc) in imx_audmix_probe() 231 priv->dai[i].platforms = &dlc[0]; in imx_audmix_probe() 256 priv->dai[num_dai + i].cpus = &dlc[1]; in imx_audmix_probe() 273 priv->dai_conf[i].dlc.of_node = args.np; in imx_audmix_probe()
|
| A D | fsl-asoc-card.c | 626 struct snd_soc_dai_link_component *dlc; in fsl_asoc_card_probe() local 713 dlc = devm_kcalloc(&pdev->dev, 10, sizeof(*dlc), GFP_KERNEL); in fsl_asoc_card_probe() 714 if (!dlc) { in fsl_asoc_card_probe() 719 priv->dai_link[0].cpus = &dlc[0]; in fsl_asoc_card_probe() 721 priv->dai_link[0].codecs = &dlc[1]; in fsl_asoc_card_probe() 723 priv->dai_link[0].platforms = &dlc[3]; in fsl_asoc_card_probe() 726 priv->dai_link[1].cpus = &dlc[4]; in fsl_asoc_card_probe() 728 priv->dai_link[1].codecs = &dlc[5]; in fsl_asoc_card_probe() 730 priv->dai_link[1].platforms = &dlc[6]; in fsl_asoc_card_probe() 733 priv->dai_link[2].cpus = &dlc[7]; in fsl_asoc_card_probe() [all …]
|
| A D | imx-card.c | 540 struct snd_soc_dai_link_component *dlc; in imx_card_parse_of() local 583 dlc = devm_kzalloc(dev, 2 * sizeof(*dlc), GFP_KERNEL); in imx_card_parse_of() 584 if (!dlc) { in imx_card_parse_of() 588 link->cpus = &dlc[0]; in imx_card_parse_of() 589 link->platforms = &dlc[1]; in imx_card_parse_of()
|
| /sound/soc/qcom/ |
| A D | common.c | 35 struct snd_soc_dai_link_component *dlc; in qcom_snd_parse_of() local 86 dlc = devm_kcalloc(dev, 2, sizeof(*dlc), GFP_KERNEL); in qcom_snd_parse_of() 87 if (!dlc) { in qcom_snd_parse_of() 92 link->cpus = &dlc[0]; in qcom_snd_parse_of() 93 link->platforms = &dlc[1]; in qcom_snd_parse_of()
|
| /sound/soc/intel/boards/ |
| A D | sof_maxim_common.c | 56 .dlc = COMP_CODEC_CONF(MAX_98373_DEV0_NAME), 60 .dlc = COMP_CODEC_CONF(MAX_98373_DEV1_NAME), 322 .dlc = COMP_CODEC_CONF(MAX_98390_DEV0_NAME), 326 .dlc = COMP_CODEC_CONF(MAX_98390_DEV1_NAME), 333 .dlc = COMP_CODEC_CONF(MAX_98390_DEV0_NAME), 337 .dlc = COMP_CODEC_CONF(MAX_98390_DEV1_NAME), 341 .dlc = COMP_CODEC_CONF(MAX_98390_DEV2_NAME), 345 .dlc = COMP_CODEC_CONF(MAX_98390_DEV3_NAME),
|
| A D | sof_realtek_common.c | 79 .dlc = COMP_CODEC_CONF(RT1011_DEV0_NAME), 83 .dlc = COMP_CODEC_CONF(RT1011_DEV1_NAME), 90 .dlc = COMP_CODEC_CONF(RT1011_DEV0_NAME), 94 .dlc = COMP_CODEC_CONF(RT1011_DEV1_NAME), 98 .dlc = COMP_CODEC_CONF(RT1011_DEV2_NAME), 102 .dlc = COMP_CODEC_CONF(RT1011_DEV3_NAME), 461 .dlc = COMP_CODEC_CONF(RT1015_DEV0_NAME), 465 .dlc = COMP_CODEC_CONF(RT1015_DEV1_NAME),
|
| /sound/soc/sdw_utils/ |
| A D | soc_sdw_utils.c | 1140 dlc = devm_kcalloc(dev, 3, sizeof(*dlc), GFP_KERNEL); in asoc_sdw_init_simple_dai_link() 1144 dlc[0].dai_name = cpu_dai_name; in asoc_sdw_init_simple_dai_link() 1145 dlc[1].name = platform_comp_name; in asoc_sdw_init_simple_dai_link() 1147 dlc[2].name = codec_name; in asoc_sdw_init_simple_dai_link() 1148 dlc[2].dai_name = codec_dai_name; in asoc_sdw_init_simple_dai_link() 1151 &dlc[0], 1, &dlc[1], 1, &dlc[2], 1, in asoc_sdw_init_simple_dai_link() 1245 dlc = kzalloc(sizeof(*dlc), GFP_KERNEL); in is_sdca_endpoint_present() 1246 if (!dlc) in is_sdca_endpoint_present() 1252 dlc->dai_name = dai_info->dai_name; in is_sdca_endpoint_present() 1256 kfree(dlc); in is_sdca_endpoint_present() [all …]
|
| /sound/soc/generic/ |
| A D | simple-card.c | 41 struct snd_soc_dai_link_component *dlc) in simple_parse_platform() argument 59 dlc->of_node = args.np; in simple_parse_platform() 66 struct snd_soc_dai_link_component *dlc, in simple_parse_dai() argument 91 dlc->dai_name = snd_soc_dai_name_get(dai); in simple_parse_dai() 93 if (!dlc->dai_args) in simple_parse_dai() 118 ret = snd_soc_get_dlc(&args, dlc); in simple_parse_dai() 152 struct snd_soc_dai_link_component *dlc; in simple_parse_node() local 157 dlc = snd_soc_link_to_cpu(dai_link, 0); in simple_parse_node() 160 dlc = snd_soc_link_to_codec(dai_link, 0); in simple_parse_node() 164 ret = simple_parse_dai(priv, np, dlc, cpu); in simple_parse_node() [all …]
|
| A D | audio-graph-card2.c | 407 struct snd_soc_dai_link_component *dlc; in __graph_parse_node() local 412 dlc = snd_soc_link_to_cpu(dai_link, idx); in __graph_parse_node() 415 dlc = snd_soc_link_to_codec(dai_link, idx); in __graph_parse_node() 431 ret = simple_util_parse_clk(dev, ep, dai, dlc); in __graph_parse_node() 439 struct snd_soc_dai_link_component *cpus = dlc; in __graph_parse_node() 492 struct snd_soc_dai_link_component *cpus = dlc; in __graph_parse_node() 746 struct snd_soc_dai_link_component *dlc; in graph_link_init() local 806 for_each_link_cpus(dai_link, i, dlc) { in graph_link_init() 807 dlc->ext_fmt = graph_parse_bitframe(ep_cpu); in graph_link_init() 813 for_each_link_codecs(dai_link, i, dlc) { in graph_link_init() [all …]
|
| A D | audio-graph-card.c | 75 static bool soc_component_is_pcm(struct snd_soc_dai_link_component *dlc) in soc_component_is_pcm() argument 77 struct snd_soc_dai *dai = snd_soc_find_dai_with_mutex(dlc); in soc_component_is_pcm() 109 struct snd_soc_dai_link_component *dlc; in graph_parse_node() local 114 dlc = snd_soc_link_to_cpu(dai_link, 0); in graph_parse_node() 117 dlc = snd_soc_link_to_codec(dai_link, 0); in graph_parse_node() 121 ret = graph_util_parse_dai(priv, ep, dlc, cpu); in graph_parse_node() 129 ret = simple_util_parse_clk(dev, ep, dai, dlc); in graph_parse_node()
|
| /sound/soc/meson/ |
| A D | axg-card.c | 109 struct snd_soc_dai_link_component *dlc; in axg_card_add_tdm_loopback() local 124 dlc = devm_kzalloc(card->dev, sizeof(*dlc), GFP_KERNEL); in axg_card_add_tdm_loopback() 125 if (!dlc) in axg_card_add_tdm_loopback() 128 lb->cpus = dlc; in axg_card_add_tdm_loopback()
|
| A D | meson-card-utils.c | 77 struct snd_soc_dai_link_component *dlc) in meson_card_parse_dai() argument 81 if (!dlc || !node) in meson_card_parse_dai() 84 ret = snd_soc_of_get_dlc(node, NULL, dlc, 0); in meson_card_parse_dai() 254 of_node_put(aux->dlc.of_node); in meson_card_clean_references()
|
| /sound/soc/mediatek/mt8183/ |
| A D | mt8183-da7219-max98357.c | 611 .dlc = COMP_EMPTY(), 617 .dlc = COMP_CODEC_CONF("mt6358-sound"), 663 .dlc = COMP_CODEC_CONF("mt6358-sound"), 667 .dlc = COMP_CODEC_CONF(RT1015_DEV0_NAME), 671 .dlc = COMP_CODEC_CONF(RT1015_DEV1_NAME), 815 mt8183_da7219_max98357_headset_dev.dlc.of_node = in mt8183_da7219_max98357_dev_probe() 818 if (!mt8183_da7219_max98357_headset_dev.dlc.of_node) { in mt8183_da7219_max98357_dev_probe()
|
| A D | mt8183-mt6358-ts3a227-max98357.c | 636 .dlc = COMP_CODEC_CONF(RT1015_DEV0_NAME), 640 .dlc = COMP_CODEC_CONF(RT1015_DEV1_NAME), 694 .dlc = COMP_EMPTY(), 798 mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node = in mt8183_mt6358_ts3a227_max98357_dev_probe() 801 if (mt8183_mt6358_ts3a227_max98357_headset_dev.dlc.of_node) { in mt8183_mt6358_ts3a227_max98357_dev_probe()
|
| /sound/soc/sunxi/ |
| A D | sun4i-codec.c | 1637 3 * sizeof(*dlc), GFP_KERNEL); in sun4i_codec_create_link() 1638 if (!link || !dlc) in sun4i_codec_create_link() 1641 link->cpus = &dlc[0]; in sun4i_codec_create_link() 1642 link->codecs = &dlc[1]; in sun4i_codec_create_link() 1643 link->platforms = &dlc[2]; in sun4i_codec_create_link() 1767 .dlc = COMP_EMPTY(), 1779 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_a23_codec_create_card() 1782 if (!aux_dev.dlc.of_node) { in sun8i_a23_codec_create_card() 1818 aux_dev.dlc.of_node = of_parse_phandle(dev->of_node, in sun8i_h3_codec_create_card() 1821 if (!aux_dev.dlc.of_node) { in sun8i_h3_codec_create_card() [all …]
|
| /sound/soc/amd/vangogh/ |
| A D | acp5x-mach.c | 258 .dlc = COMP_CODEC_CONF(ACP5X_CS35L41_COMP_LNAME), 262 .dlc = COMP_CODEC_CONF(ACP5X_CS35L41_COMP_RNAME), 354 .dlc = COMP_CODEC_CONF(ACP5X_MAX98388_COMP_LNAME), 358 .dlc = COMP_CODEC_CONF(ACP5X_MAX98388_COMP_RNAME),
|
| /sound/soc/rockchip/ |
| A D | rockchip_max98090.c | 294 .dlc = COMP_EMPTY(), 363 rk_98090_headset_dev.dlc.of_node = of_parse_phandle( in rk_parse_headset_from_of() 365 if (!rk_98090_headset_dev.dlc.of_node) { in rk_parse_headset_from_of()
|
| /sound/soc/samsung/ |
| A D | tm2_wm5110.c | 335 amp_pdm_dai = snd_soc_find_dai(&tm2_speaker_amp_dev.dlc); in tm2_late_probe() 535 card->aux_dev[0].dlc.of_node = of_parse_phandle(dev->of_node, in tm2_probe() 537 if (!card->aux_dev[0].dlc.of_node) { in tm2_probe() 628 of_node_put(card->aux_dev[0].dlc.of_node); in tm2_probe()
|
| /sound/soc/intel/avs/boards/ |
| A D | ssm4567.c | 23 .dlc = COMP_CODEC_CONF("i2c-INT343B:00"), 27 .dlc = COMP_CODEC_CONF("i2c-INT343B:01"),
|