kpb: convert to Zephyr native initialisation

Use SOF_MODULE_INIT() to register kpb 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:18:12 +01:00 committed by Kai Vehmanen
parent 16bf62c2cc
commit e34183b0ab
2 changed files with 2 additions and 4 deletions

View File

@ -25,6 +25,7 @@
#include <rtos/timer.h>
#include <rtos/alloc.h>
#include <rtos/clk.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <sof/lib/pm_runtime.h>
@ -1886,3 +1887,4 @@ UT_STATIC void sys_comp_kpb_init(void)
}
DECLARE_MODULE(sys_comp_kpb_init);
SOF_MODULE_INIT(kpb, sys_comp_kpb_init);

View File

@ -185,7 +185,6 @@ static void sys_module_init(void)
void sys_comp_mux_init(void);
void sys_comp_asrc_init(void);
void sys_comp_dcblock_init(void);
void sys_comp_kpb_init(void);
void sys_comp_smart_amp_init(void);
void sys_comp_basefw_init(void);
void sys_comp_copier_init(void);
@ -244,9 +243,6 @@ int task_main_start(struct sof *sof)
int start_complete(void)
{
if (IS_ENABLED(CONFIG_COMP_KPB))
sys_comp_kpb_init();
if (IS_ENABLED(CONFIG_SAMPLE_SMART_AMP) ||
IS_ENABLED(CONFIG_MAXIM_DSM))
sys_comp_smart_amp_init();