Skip to content
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

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

serhiy-katsyuba-intel
Copy link
Contributor

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.

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>
@marcinszkudlinski
Copy link
Contributor

good point,
may those than deleted in unbind?

@serhiy-katsyuba-intel
Copy link
Contributor Author

good point, may those than deleted in unbind?

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.

@serhiy-katsyuba-intel
Copy link
Contributor Author

Internal Intel CI has failed on tests checkout. Been re-scheduled to run again.

Copy link
Collaborator

@kv2019i kv2019i left a 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.

@lgirdwood
Copy link
Member

@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.

@serhiy-katsyuba-intel
Copy link
Contributor Author

@lgirdwood , @kv2019i , CI finally completed. Ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants