]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: soc-acpi / SOF: Add best_effort flag to get_function_tplg_files op
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Mon, 15 Dec 2025 10:10:35 +0000 (12:10 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 15 Dec 2025 14:08:35 +0000 (23:08 +0900)
commitc8f3c9fa75ff3822b56b47d5cfa0aaa484040ea8
tree86ae12b9d5d7608977e93aee53f43b027bc91e3d
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
ASoC: soc-acpi / SOF: Add best_effort flag to get_function_tplg_files op

When there is no fallback possibility available for the function topology
use it is better to try to create  a profile for the card in best effort
manner, leaving out non supported links for example.

As an example: some laptops present SSPx-BT link but we don't have fragment
yet to support this. If we only have support for functional topology
without monolithic fallback then we would fail the card creation.
The reason why the monolithic topology works on the same device is that it
does not have the SSPx-BT link handled, it is ignored.

In case when there is no fallback possibility we should try to create the
card with links that we support as best effort instead of failing and
leaving the user without a card.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20251215101036.9370-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-acpi.h
sound/soc/intel/common/sof-function-topology-lib.c
sound/soc/intel/common/sof-function-topology-lib.h
sound/soc/sof/topology.c