From 798e7acaf35d8e95094f3369d6794e6f7d301c82 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Tue, 24 Jan 2023 16:33:00 +0100 Subject: [PATCH] dcblock: convert to Zephyr native initialisation Use SOF_MODULE_INIT() to register dcblock with the Zephyr initialisation framework. Signed-off-by: Guennadi Liakhovetski --- src/audio/dcblock/dcblock.c | 2 ++ zephyr/wrapper.c | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) 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();