-
Notifications
You must be signed in to change notification settings - Fork 318
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
ipc4: Regression FIX: Do not clear sources/sinks on reset #8657
Conversation
After thesofproject#8594 been merged, sources and sinks are now setup on .bind() and .unbind(). Previously they were setup in .prepare(). However, there were code left in module_adapter_reset() which clears sources and sinks arrays. That broke some tests: modules which use source/sink API stopped working correctly after pipeline reset. Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
good point, |
They are re-setup (overwritten) at .bind() and .unbind(). So, yes, if something been unbinded then num_of_sources/num_of_sinks and sources[]/sinks[] will be updated appropriately. |
Internal Intel CI has failed on tests checkout. Been re-scheduled to run again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't realize immediately that we call the prepare function at unbind as well, so indeed this piece of code is not needed.
@serhiy-katsyuba-intel any update on CI ? Fwiw, there was an DUT upload issue last night that blocked some PRs so worth checking if this is good to merge. |
@lgirdwood , @kv2019i , CI finally completed. Ready to merge. |
After #8594 been merged, sources and sinks are now setup on .bind() and .unbind(). Previously they were setup in .prepare(). However, there were code left in module_adapter_reset() which clears sources and sinks arrays. That broke some tests: modules which use source/sink API stopped working correctly after pipeline reset.