forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: SOF: topology: add state variable to check topology load state
With the complicated error flow, we don't have a record of whether the topology was loaded or not. Having a dmesg trace would help indicate an unintended path in error handling. Add a boolean to only load the topology if it's not already loaded, and free the topology if it's loaded, and log errors as needed. Note that the topology_free should itself never result in any crashes. If it does it's a separate issue from identifying bad error handling. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters