diff --git a/src/audio/google/google_hotword_detect.c b/src/audio/google/google_hotword_detect.c index c5664c1e4..1713453a3 100644 --- a/src/audio/google/google_hotword_detect.c +++ b/src/audio/google/google_hotword_detect.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -484,3 +485,4 @@ UT_STATIC void sys_comp_ghd_init(void) } DECLARE_MODULE(sys_comp_ghd_init); +SOF_MODULE_INIT(ghd, sys_comp_ghd_init); diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index dfb16eed1..5f97b6539 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -182,7 +182,6 @@ static void sys_module_init(void) * constructors directly atm. */ -void sys_comp_ghd_init(void); void sys_comp_module_dts_interface_init(void); void sys_comp_module_waves_interface_init(void); #if CONFIG_IPC_MAJOR_4 @@ -226,9 +225,6 @@ int task_main_start(struct sof *sof) int start_complete(void) { - if (IS_ENABLED(CONFIG_COMP_GOOGLE_HOTWORD_DETECT)) - sys_comp_ghd_init(); - if (IS_ENABLED(CONFIG_DTS_CODEC)) sys_comp_module_dts_interface_init();