Skip to content

Conversation

@ujfalusi
Copy link
Collaborator

@ujfalusi ujfalusi commented Nov 19, 2025

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.

Remove the rt722 from the nvl match table to force the use of function topologies.

bardliao
bardliao previously approved these changes Nov 20, 2025
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is ok, one inline comment about readability...


if (!sof_pdata->disable_function_topology && !disable_function_topology &&
sof_pdata->machine && sof_pdata->machine->get_function_tplg_files) {
bool no_fallback = strstr(file, "dummy");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit would benefit from some hint (in code comment?) why "dummy" should change the behaviour. I think it's ok to have the longer story in commit message, but something in code would be helpful why this check is done.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll cook up something

@ujfalusi ujfalusi force-pushed the peter/sof/pr/function-tplg-best-effort branch from d8a9f36 to 0287b57 Compare November 25, 2025 13:30
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 <[email protected]>
…able

Revert "ASoC: Intel: soc-acpi-intel-nvl-match: add rt722 l3 support"

NVL should be only using functional topologies for products, no monolithic
topologies are planned to be released.

In parallel a feature has been landed [1] which allows to remove the
entries from the match table for sdca codecs to rely solely on function
fragments.

Link: https://lore.kernel.org/linux-sound/[email protected]/
This reverts commit 41566e3.
Signed-off-by: Peter Ujfalusi <[email protected]>
@ujfalusi
Copy link
Collaborator Author

Changes since v1:

  • Comment section added to explain the meaning of 'no_fallback' flag in topology.c
  • Patch added to revert the rt722 match from the sdw match table

@bardliao bardliao merged commit 719a32e into thesofproject:topic/sof-dev Dec 1, 2025
9 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants