Repository navigation
EQ FIR: Add support for runtime reconfiguration - #2259
Conversation
lgirdwood
left a comment
There was a problem hiding this comment.
It looks like there are about 4 or 5 changes here that would be better as 4 or 5 separate patches in this PR.
OK, I'll see how much I can separate. There's need to test the in-between versions with multiple commits. |
Just do the ones that make sense. i.e. the two items removed can be different patches. |
|
@lgirdwood Thanks, that's straightforward. I ran into problems in separating SOF_CTRL_CMD_ENUM change. |
1101044 to
28f3dbc
Compare
|
I updated this PR with a four commits version. I changed one trace_eq() into trace_eq_error(), no other code changes for end result. |
|
Oops, I forgot to update commit message #1. It no more contains everything. |
28f3dbc to
cf18c0f
Compare
|
I just updated the first commit message, no other changes. |
lgirdwood
left a comment
There was a problem hiding this comment.
Minor thing, but it can lead to later errors if updated wrongly so best to fix.
This patch adds similarly as done for IIR capability to change the configuration during playback or capture. The previous version returned an error to driver in such case even with a valid request. Due to driver logic of caching the controls (no separate handling for EBUSY) the rejected request caused all successive streaming attempts to fail. Support for SOF_CTRL_CMD_ENUM to control preset-EQ is removed since the driver does not support the feature. The implementation would need a change anyway so better to remove it now and reintroduce it if needed later. Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch removes the command handler stubs for COMP_CMD_SET_VALUE and COMP_CMD_GET_VALUE. A proper error is issued if these commands are passed to FIR. Signed-off-by: Seppo Ingalsuo <[email protected]>
Response channel map extrapolation uses now last valid channel response instead of first response when there are more stream channels than channel map on configuration blob. The change is done for similarity with IIR. It prevents a false issue report from static code analysis. The extrapolation behavior is not critical and in effect type of usage where it is common to apply the single defined response for every channel so in that case there is no change. In transducer equalization the blob needs to define usually a different for every channel so also in that case extrapolation is not feasible to let happen and a full length channel map need to be defined anyway. The firmware trace shows which response # gets applied for channel. So when unsure the parsing of configuration blob can be quickly checked. Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch unifies the configuration blob parsing related traces with IIR. The low importance trace for response start index is removed and a note about setting a channel to bypass is added. The illegal channel map response index is traced with error. Signed-off-by: Seppo Ingalsuo <[email protected]>
cf18c0f to
c875b5e
Compare
paulstelian97
left a comment
There was a problem hiding this comment.
Nothing jumps out to me as wrong so approved.
|
Woohoo, we can now close issues for sof-ctl during streaming. Thanks @paulstelian97 and @lgirdwood for review! |
This pull request adds to FIR capability to change the configuration during playback or capture plus other changes to align the features with recent updates to IIR. There are four commits:
Add support for runtime reconfiguration
Remove handling of set/get value commands
Extrapolate channels response map with last valid
Add trace verbosity and align with IIR trace output