-
Notifications
You must be signed in to change notification settings - Fork 349
eq_fir: use module interface #6194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eq_fir: use module interface #6194
Conversation
331f261 to
f031555
Compare
|
Please use github drafts to reduce spam. |
f031555 to
9ef85fa
Compare
9ef85fa to
fea2d20
Compare
|
update PR for comments, thanks. |
|
@RanderWang some build errors in CI. |
fea2d20 to
907f414
Compare
thanks, fixed |
|
@ranj063 good for you ? |
@RanderWang Could you please let me know how this was tested? There is no support for EQ FIR in any of our topologies, there is no unit tests for EQ FIR and neither does testbench have any support for it. |
I don't have any method to test it. The original eq-iir test was designed by Seppo, but none for eq-fir. @singalsu do you know how to test eq-fir ? |
thanks @singalsu I will add a unit test |
31fdc4a to
f75fec1
Compare
|
@RanderWang you may need to force push again as internal CI could be blocked. |
@lgirdwood My PR can works with zephyr build now and it was caused by dma trace setting on my device. But I find a strange behavior. 07_05_TestKdDmicD0ix16000Hz24b32b2ch is failed on JSL. It can pass without my last commit: eq_fir interface changing although it doesn't use eq-fir. One possible reason is that the memory usage maybe increased by this commit which results to this issue on JSL. I am not sure and need time to check it. If @ranj063 has some breakthrough, I will try it. |
@lgirdwood I am working on the unit test infra for module_adapter and will have it ready by next week. Lets merge this PR now with the condition that @RanderWang will add the unit tests for eq fir once I have the infra ready |
@RanderWang if the test doesnt use EQ FIR, how will the memory usage increase without even setting up the component? |
I meant code segment. Compiler may generate more binary and use more dsp memory. |
if EQ FIR is not used on JSL, why not unselect it from the default modules built into the FW? |
1410be7 to
181157b
Compare
|
SOFCI TEST |
It is not used by CI test but may be used by JSL. And no easy way to just disable it on JSL |
|
update. I found the heap buffer size is decreased significantly with this PR on JSL. I am debugging it. |
|
@lgirdwood The failed test case on a JSL RVP is caused by abnormal heap buffer size. But heap buffer size is correct with my PR on a CI JSL RVP, so there is something wrong with the CI build for JSL. And the test is using XTOS build, not zephyr version which doesn't has such heap buffer. @keqiaozhang , do you know how does this test item build fw ? |
|
@ranj063 any update on your work to help module API updates ? |
Adopt module interface for eq_fir component. Signed-off-by: Rander Wang <rander.wang@intel.com>
181157b to
2a599bf
Compare
|
@lgirdwood @ranj063 @singalsu This patch passed the unit test #6308 which uses pass-through coef. I have to use pass-through coef since I cooperated Andrula but still can't find a valid input & ref output. Seppo will help to improve this unit test. For no-pass-through coef, no fw panic found although the result can't match ref |
|
@RanderWang can you provide the test result for @singalsu to comment ? |
|
|
hi all, the #6308 was improved by Seppo and it works with this PR. I will adapt it to new module adapter test in my Q4 task list. Thanks! |
This seems to work well. The test pass criteria was now made more demanding, +/- 1 LSB for 16 bit +/- 2 for 24 bit and +/- 4 for 32 bit vs. float reference. |
@lgirdwood The failed test case on a JSL RVP is caused by abnormal heap buffer size. But heap buffer size is correct with my PR on a another JSL RVP, so there is something wrong with the CI build for JSL. And the test is using XTOS build, not zephyr version which doesn't has such heap buffer |
|
@wszypelt @lrudyX can you retire the older CAVS platforms from daily PR testing and use them for testing on the CAVS production branches only. |
|
@wszypelt pls let me know when teh older HW is retired and I will merge to keep CI green. Thanks. |
Adopt module interface for eq_fir.
Signed-off-by: Rander Wang rander.wang@intel.com