mirror of https://github.com/thesofproject/sof.git
tone: convert to Zephyr native initialisation
Use SOF_MODULE_INIT() to register tone with the Zephyr initialisation framework. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
644a11b251
commit
d1d3cfdeaf
|
@ -15,6 +15,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>
|
||||
|
@ -745,3 +746,4 @@ UT_STATIC void sys_comp_tone_init(void)
|
|||
}
|
||||
|
||||
DECLARE_MODULE(sys_comp_tone_init);
|
||||
SOF_MODULE_INIT(tone, sys_comp_tone_init);
|
||||
|
|
|
@ -184,7 +184,6 @@ static void sys_module_init(void)
|
|||
|
||||
void sys_comp_host_init(void);
|
||||
void sys_comp_mux_init(void);
|
||||
void sys_comp_tone_init(void);
|
||||
void sys_comp_module_eq_fir_interface_init(void);
|
||||
void sys_comp_keyword_init(void);
|
||||
void sys_comp_asrc_init(void);
|
||||
|
@ -252,9 +251,6 @@ int task_main_start(struct sof *sof)
|
|||
|
||||
int start_complete(void)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_COMP_TONE))
|
||||
sys_comp_tone_init();
|
||||
|
||||
if (IS_ENABLED(CONFIG_COMP_FIR))
|
||||
sys_comp_module_eq_fir_interface_init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue