mirror of https://github.com/thesofproject/sof.git
host: convert to Zephyr native initialisation
Use SOF_MODULE_INIT() to register host with the Zephyr initialisation framework. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
602205f40a
commit
16bf62c2cc
|
@ -14,6 +14,7 @@
|
|||
#include <sof/debug/panic.h>
|
||||
#include <sof/ipc/msg.h>
|
||||
#include <rtos/alloc.h>
|
||||
#include <rtos/init.h>
|
||||
#include <sof/lib/dma.h>
|
||||
#include <sof/lib/mailbox.h>
|
||||
#include <sof/lib/memory.h>
|
||||
|
@ -1101,3 +1102,4 @@ UT_STATIC void sys_comp_host_init(void)
|
|||
}
|
||||
|
||||
DECLARE_MODULE(sys_comp_host_init);
|
||||
SOF_MODULE_INIT(host, sys_comp_host_init);
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <sof/debug/panic.h>
|
||||
#include <sof/ipc/msg.h>
|
||||
#include <rtos/alloc.h>
|
||||
#include <rtos/init.h>
|
||||
#include <sof/lib/dma.h>
|
||||
#include <sof/lib/mailbox.h>
|
||||
#include <sof/lib/memory.h>
|
||||
|
@ -1174,3 +1175,4 @@ UT_STATIC void sys_comp_host_init(void)
|
|||
}
|
||||
|
||||
DECLARE_MODULE(sys_comp_host_init);
|
||||
SOF_MODULE_INIT(host, sys_comp_host_init);
|
||||
|
|
|
@ -182,7 +182,6 @@ static void sys_module_init(void)
|
|||
* constructors directly atm.
|
||||
*/
|
||||
|
||||
void sys_comp_host_init(void);
|
||||
void sys_comp_mux_init(void);
|
||||
void sys_comp_asrc_init(void);
|
||||
void sys_comp_dcblock_init(void);
|
||||
|
@ -237,9 +236,6 @@ int task_main_start(struct sof *sof)
|
|||
/* init self-registered modules */
|
||||
sys_module_init();
|
||||
|
||||
/* host is mandatory */
|
||||
sys_comp_host_init();
|
||||
|
||||
/* init pipeline position offsets */
|
||||
pipeline_posn_init(sof);
|
||||
|
||||
|
|
Loading…
Reference in New Issue