Skip to content

Commit 64d5a11

Browse files
committed
ASoC: sof-function-topology-lib: add virtual loop dai support
The virtual loop dai link is created by the machine driver and no topology is needed for the dai link. Handle it to avoid the dai_link is not supported error. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 667770d commit 64d5a11

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

sound/soc/intel/common/sof-function-topology-lib.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ enum tplg_device_id {
1919
TPLG_DEVICE_SDCA_MIC,
2020
TPLG_DEVICE_INTEL_PCH_DMIC,
2121
TPLG_DEVICE_HDMI,
22+
TPLG_DEVICE_LOOPBACK_VIRTUAL,
2223
TPLG_DEVICE_MAX
2324
};
2425

@@ -81,7 +82,15 @@ int sof_sdw_get_tplg_files(struct snd_soc_card *card, const struct snd_soc_acpi_
8182
} else if (strstr(dai_link->name, "iDisp")) {
8283
tplg_dev = TPLG_DEVICE_HDMI;
8384
tplg_dev_name = "hdmi-pcm5";
84-
85+
} else if (strstr(dai_link->name, "Loopback_Virtual")) {
86+
tplg_dev = TPLG_DEVICE_LOOPBACK_VIRTUAL;
87+
/*
88+
* Mark the LOOPBACK_VIRTUAL device but no need to create the
89+
* LOOPBACK_VIRTUAL topology. Just to avoid the dai_link is not supported
90+
* error.
91+
*/
92+
tplg_mask |= BIT(tplg_dev);
93+
continue;
8594
} else {
8695
/* The dai link is not supported by separated tplg yet */
8796
dev_dbg(card->dev,

0 commit comments

Comments
 (0)