Skip to content

Commit 4927808

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 b309a4a commit 4927808

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

@@ -86,7 +87,15 @@ int sof_sdw_get_tplg_files(struct snd_soc_card *card, const struct snd_soc_acpi_
8687
} else if (strstr(dai_link->name, "iDisp")) {
8788
tplg_dev = TPLG_DEVICE_HDMI;
8889
tplg_dev_name = "hdmi-pcm5";
89-
90+
} else if (strstr(dai_link->name, "Loopback_Virtual")) {
91+
tplg_dev = TPLG_DEVICE_LOOPBACK_VIRTUAL;
92+
/*
93+
* Mark the LOOPBACK_VIRTUAL device but no need to create the
94+
* LOOPBACK_VIRTUAL topology. Just to avoid the dai_link is not supported
95+
* error.
96+
*/
97+
tplg_mask |= BIT(tplg_dev);
98+
continue;
9099
} else {
91100
/* The dai link is not supported by separated tplg yet */
92101
dev_dbg(card->dev,

0 commit comments

Comments
 (0)