Lines Matching refs:dai

1384 				  struct snd_sof_dai *dai)
1392 dev_vdbg(scomp->dev, "tplg: check widget: %s stream: %s dai stream: %s\n",
1421 dai->name = rtd->dai_link->name;
1443 dai->name = rtd->dai_link->name;
1453 if (!dai->name) {
1509 struct snd_sof_dai *dai)
1522 /* configure dai IPC message */
1530 dev_err(scomp->dev, "error: parse dai tokens failed %d\n",
1539 dev_err(scomp->dev, "error: parse dai.cfg tokens failed %d\n",
1544 dev_dbg(scomp->dev, "dai %s: type %d index %d\n",
1551 if (ret == 0 && dai) {
1552 dai->scomp = scomp;
1559 memcpy(&dai->comp_dai, comp_dai, sizeof(*comp_dai));
1585 /* configure dai IPC message */
1731 /* configure dai IPC message */
2385 struct snd_sof_dai *dai;
2445 dai = kzalloc(sizeof(*dai), GFP_KERNEL);
2446 if (!dai) {
2451 ret = sof_widget_load_dai(scomp, index, swidget, tw, &reply, dai);
2453 sof_connect_dai_widget(scomp, w, tw, dai);
2454 list_add(&dai->list, &sdev->dai_list);
2455 swidget->private = dai;
2457 kfree(dai);
2567 struct snd_sof_dai *dai;
2581 dai = swidget->private;
2583 if (dai) {
2584 /* free dai config */
2585 kfree(dai->dai_config);
2586 list_del(&dai->list);
2658 struct snd_soc_tplg_pcm *pcm, struct snd_soc_dai *dai)
2826 struct snd_sof_dai *dai;
2829 list_for_each_entry(dai, &sdev->dai_list, list) {
2830 if (!dai->name)
2833 if (strcmp(link->name, dai->name) == 0) {
2838 * the same dai config will be applied to all DAIs in
2839 * the same dai link. We have to ensure that the ipc
2840 * dai config's dai_index match to the component's
2843 config->dai_index = dai->comp_dai.dai_index;
2852 dai->name, config->dai_index);
2855 dai->dai_config = kmemdup(config, size, GFP_KERNEL);
2856 if (!dai->dai_config)
2860 dai->cpu_dai_name = link->cpus->dai_name;
2867 * machine driver may define a dai link with playback and capture
2868 * dai enabled, but the dai link in topology would support both, one
2872 dev_warn(sdev->dev, "warning: failed to find dai for dai link %s",
3151 struct snd_soc_dai *dai;
3172 dai = snd_soc_find_dai(link->cpus);
3173 if (!dai) {
3174 dev_err(scomp->dev, "error: failed to find dai %s in %s",
3183 dev_err(scomp->dev, "error: failed to process hda dai link %s",
3240 * Set nonatomic property for FE dai links as their trigger action
3258 /* nothing more to do for FE dai links */
3283 * But some older topologies might have no hw_config for HDA dai links.
3308 /* configure dai IPC message */
3355 struct snd_soc_dai *dai;
3357 dai = snd_soc_find_dai(link->cpus);
3358 if (!dai) {
3359 dev_err(sdev->dev, "error: failed to find dai %s in %s",
3389 dev_err(scomp->dev, "error: failed to find dai %s in %s",