diff --git a/src/audio/dcblock/dcblock.c b/src/audio/dcblock/dcblock.c index 15538796c..38908fc9d 100644 --- a/src/audio/dcblock/dcblock.c +++ b/src/audio/dcblock/dcblock.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -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); diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 2e33852dd..4c58a2d0f 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -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();