Skip to content

Commit f8908cc

Browse files
committed
audio: iadk: initialize loadable modules once
The system agent called Init() as soon as the module loaded. The module adapter called it again from framework-owned module_init(). That could allocate detector state and register services twice. Remove the early call and keep module_init() as the single owner. Its return value is propagated through iadk_wrapper_init(). Signed-off-by: Gaggery Tsai <gaggery.tsai@intel.com>
1 parent c02b317 commit f8908cc

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/audio/module_adapter/iadk/system_agent.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ int SystemAgent::CheckIn(ProcessingModuleFactoryInterface& module_factory,
173173

174174
IadkModuleAdapter& module_adapter = *reinterpret_cast<IadkModuleAdapter*>(module_handle_);
175175
*obfuscated_modinst_p = &module_adapter;
176-
reinterpret_cast<intel_adsp::ProcessingModuleInterface*>(module_placeholder)->Init();
177176
return 0;
178177
}
179178

0 commit comments

Comments
 (0)