EQ IIR: Increase IPC length, simplify initialization, and dcache invalidate code#317
Merged
lgirdwood merged 2 commits intothesofproject:masterfrom Sep 6, 2018
Conversation
This patch changes equalizer initialization to store the allocated delay lines buffers address in a single pointer and size component data. This simplifies the dcache invalidate code avoids knowledge of filter internals that may change for future intrinsic optimized version. The EQ reconfigure and responses switching is by this patch changed to happen in prepare() to avoid doing unnecessary allocation and free operations in typical component life cycle. Prior to to prepare sent configuration is just stored but not initialized into equalizers. On-the-fly response switching can be enabled later with some work for the component. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch increases IPC length to be sufficient for e.g. 2x 12th order IIR configuration. This is near to minimum feasible to enable testing of equalizers. There may be need to adjust the limit up even more later but this is the proposal now until we know better the requirements. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
tlauda
reviewed
Sep 6, 2018
|
|
||
| dcache_invalidate_region(dev, sizeof(*dev)); | ||
|
|
||
| cd = comp_get_drvdata(dev); |
Contributor
There was a problem hiding this comment.
comp_data should be retrieved after invalidation of dev, since we can potentially have the wrong pointer.
Collaborator
Author
There was a problem hiding this comment.
Thanks, a new pull request with fix for this is on the way.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please find the commit messages for changes descriptions.