dcblock: convert to Zephyr native initialisation

Use SOF_MODULE_INIT() to register dcblock with the Zephyr
initialisation framework.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2023-01-24 16:33:00 +01:00 committed by Kai Vehmanen
parent 781a2f14a9
commit 798e7acaf3
2 changed files with 2 additions and 4 deletions

View File

@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
@ -431,3 +432,4 @@ UT_STATIC void sys_comp_dcblock_init(void)
}
DECLARE_MODULE(sys_comp_dcblock_init);
SOF_MODULE_INIT(dcblock, sys_comp_dcblock_init);

View File

@ -183,7 +183,6 @@ static void sys_module_init(void)
*/
void sys_comp_mux_init(void);
void sys_comp_dcblock_init(void);
void sys_comp_basefw_init(void);
void sys_comp_copier_init(void);
void sys_comp_module_cadence_interface_init(void);
@ -241,9 +240,6 @@ int task_main_start(struct sof *sof)
int start_complete(void)
{
if (IS_ENABLED(CONFIG_COMP_DCBLOCK))
sys_comp_dcblock_init();
if (IS_ENABLED(CONFIG_COMP_MUX))
sys_comp_mux_init();