forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
google_aec: Don't allocate giant blobs on the heap
The operation of the AEC component uses a single buffer as an internal heap. This is very large, over half the available SRAM at component creation time on MTL. That's just a poor fit for the heap. It would be trivial to create a fragmentation scenario by creating/destroying components (which happens under user control all the way out in Linux userspace!) where AEC can't initialize and microphone input breaks. Longer term we can look at moving this usage back to the heap by integrating the component's internal allocations with the SOF/Zephyr heap (which is quite performant), allowing it to make fine-grained allocations which will work more robustly. Signed-off-by: Andy Ross <andyross@google.com>
- Loading branch information
1 parent
41a4892
commit 0eb34db
Showing
2 changed files
with
16 additions
and
17 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