mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://patch.msgid.link/20260421091351.4056377-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
254f49634e
commit
0d0e98603f
|
|
@ -19,6 +19,7 @@ enum tplg_device_id {
|
|||
TPLG_DEVICE_SDCA_MIC,
|
||||
TPLG_DEVICE_INTEL_PCH_DMIC,
|
||||
TPLG_DEVICE_HDMI,
|
||||
TPLG_DEVICE_LOOPBACK_VIRTUAL,
|
||||
TPLG_DEVICE_MAX
|
||||
};
|
||||
|
||||
|
|
@ -81,7 +82,15 @@ int sof_sdw_get_tplg_files(struct snd_soc_card *card, const struct snd_soc_acpi_
|
|||
} else if (strstr(dai_link->name, "iDisp")) {
|
||||
tplg_dev = TPLG_DEVICE_HDMI;
|
||||
tplg_dev_name = "hdmi-pcm5";
|
||||
|
||||
} else if (strstr(dai_link->name, "Loopback_Virtual")) {
|
||||
tplg_dev = TPLG_DEVICE_LOOPBACK_VIRTUAL;
|
||||
/*
|
||||
* Mark the LOOPBACK_VIRTUAL device but no need to create the
|
||||
* LOOPBACK_VIRTUAL topology. Just to avoid the dai_link is not supported
|
||||
* error.
|
||||
*/
|
||||
tplg_mask |= BIT(tplg_dev);
|
||||
continue;
|
||||
} else {
|
||||
/* The dai link is not supported by separated tplg yet */
|
||||
dev_dbg(card->dev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user