Convert the EQ IIR component to use the module interface#5926
Convert the EQ IIR component to use the module interface#5926lgirdwood merged 6 commits intothesofproject:mainfrom
Conversation
d8e1386 to
5e2f6b2
Compare
df0e7f2 to
3890d33
Compare
src/audio/eq_iir/eq_iir.c
Outdated
There was a problem hiding this comment.
This HiFi3 version difference is not yet needed but I think it can be left this way since @andrula-song will implement a more efficient version of IIR in Q3.
singalsu
left a comment
There was a problem hiding this comment.
Looks quite good to me. Consider some improvements those I proposed to clean up this and successive components.
|
I quickly checked this PR on my ADL RVP which has a DMIC transducer board. Captured wavefile is fine also |
@singalsu I've addressed your comments in this version now |
|
@ranj063 this PR now has conflicts after my cache / sparse PR with a patch for eq-iir has been merged, please update |
singalsu
left a comment
There was a problem hiding this comment.
Looks good now, but need the rebase.
33de4dd to
caf94ab
Compare
|
@ranj063 fwiw, All the sparse cache component updates now merged. |
|
@ranj063 ping |
It is not needed. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Introduce a new helper function to set the blob to be used with the module adapter set_configuration op. When all modules are converted to use the new op, the comp_data_blob_set_cmd() can be removed. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Add support for loading the process components by UUID. This needs a modification in the IPC3 helper to modify the ipc data pointer to address followed by the UUID in the component extended data. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
@lgirdwood updated now |
lgirdwood
left a comment
There was a problem hiding this comment.
Just a few minor questions.
Use the module interface instead of the comp drv interface for the EQ IIR component. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
And macros for converting bytes to samples and samples to bytes and use it in all components to avoid duplication. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Add a new helper to update the consumed bytes in the input stream buffer and the produces bytes in the output stream buffer. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
|
SOFCI TEST |
1 similar comment
|
SOFCI TEST |
|
rerun CI, there has been a west issue. |
| ret = eq_iir_setup(cd, source_c->stream.channels); | ||
| ret = eq_iir_setup(mod, source_c->stream.channels); | ||
| buffer_release(sink_c); | ||
| buffer_release(source_c); |
There was a problem hiding this comment.
you now have 3 locations where you release buffers. Wouldn't it be better to keep the original if {} else {} code structure and release the buffers once at the end?
|
This PR did not pass PR CI: https://sof-ci.01.org/sofpr/PR5926/build903/devicetest/ Unsurprisingly, there are now a lot of failures in daily test run 14058 SOF#6020: [BUG] DSP panic when testing signal stop/start on DMIC pipeline (Thanks @keqiaozhang for the identification) |
Thanks @marc-hb looking at this now |
No description provided.