Skip to content

Commit b102f09

Browse files
ipc4: Regression FIX: Do not clear sources/sinks on 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>
1 parent da55a5c commit b102f09

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/audio/module_adapter/module_adapter.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,15 +1316,6 @@ int module_adapter_reset(struct comp_dev *dev)
13161316
}
13171317
}
13181318
#endif /* CONFIG_ZEPHYR_DP_SCHEDULER */
1319-
if (IS_PROCESSING_MODE_SINK_SOURCE(mod)) {
1320-
/* for both LL and DP processing */
1321-
for (i = 0; i < mod->num_of_sources; i++)
1322-
mod->sources[i] = NULL;
1323-
for (i = 0; i < mod->num_of_sinks; i++)
1324-
mod->sinks[i] = NULL;
1325-
mod->num_of_sinks = 0;
1326-
mod->num_of_sources = 0;
1327-
}
13281319

13291320
mod->total_data_consumed = 0;
13301321
mod->total_data_produced = 0;

0 commit comments

Comments
 (0)