mirror of https://github.com/thesofproject/sof.git
dcblock: convert to Zephyr native initialisation
Use SOF_MODULE_INIT() to register dcblock with the Zephyr initialisation framework. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
781a2f14a9
commit
798e7acaf3
|
@ -14,6 +14,7 @@
|
||||||
#include <sof/debug/panic.h>
|
#include <sof/debug/panic.h>
|
||||||
#include <sof/ipc/msg.h>
|
#include <sof/ipc/msg.h>
|
||||||
#include <rtos/alloc.h>
|
#include <rtos/alloc.h>
|
||||||
|
#include <rtos/init.h>
|
||||||
#include <sof/lib/memory.h>
|
#include <sof/lib/memory.h>
|
||||||
#include <sof/lib/uuid.h>
|
#include <sof/lib/uuid.h>
|
||||||
#include <sof/list.h>
|
#include <sof/list.h>
|
||||||
|
@ -431,3 +432,4 @@ UT_STATIC void sys_comp_dcblock_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_MODULE(sys_comp_dcblock_init);
|
DECLARE_MODULE(sys_comp_dcblock_init);
|
||||||
|
SOF_MODULE_INIT(dcblock, sys_comp_dcblock_init);
|
||||||
|
|
|
@ -183,7 +183,6 @@ static void sys_module_init(void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void sys_comp_mux_init(void);
|
void sys_comp_mux_init(void);
|
||||||
void sys_comp_dcblock_init(void);
|
|
||||||
void sys_comp_basefw_init(void);
|
void sys_comp_basefw_init(void);
|
||||||
void sys_comp_copier_init(void);
|
void sys_comp_copier_init(void);
|
||||||
void sys_comp_module_cadence_interface_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)
|
int start_complete(void)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_COMP_DCBLOCK))
|
|
||||||
sys_comp_dcblock_init();
|
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_COMP_MUX))
|
if (IS_ENABLED(CONFIG_COMP_MUX))
|
||||||
sys_comp_mux_init();
|
sys_comp_mux_init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue