-
Notifications
You must be signed in to change notification settings - Fork 139
ASoC: soc-acpi / SOF: Add best_effort flag to get_function_tplg_files op #5596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASoC: soc-acpi / SOF: Add best_effort flag to get_function_tplg_files op #5596
Conversation
kv2019i
left a comment
There was a problem hiding this 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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
d8a9f36 to
0287b57
Compare
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]>
|
Changes since v1:
|
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.