up-down-mixer: convert to Zephyr native initialisation

Use SOF_MODULE_INIT() to register up-down-mixer with the Zephyr
initialisation framework.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2023-01-25 14:18:13 +01:00 committed by Kai Vehmanen
parent 12f647b753
commit d34fe6f1d4
2 changed files with 2 additions and 4 deletions

View File

@ -15,6 +15,7 @@
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <rtos/init.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <sof/lib/uuid.h>
@ -463,3 +464,4 @@ static struct module_interface up_down_mixer_interface = {
};
DECLARE_MODULE_ADAPTER(up_down_mixer_interface, up_down_mixer_comp_uuid, up_down_mixer_comp_tr);
SOF_MODULE_INIT(up_down_mixer, sys_comp_module_up_down_mixer_interface_init);

View File

@ -182,7 +182,6 @@ static void sys_module_init(void)
* constructors directly atm.
*/
void sys_comp_module_up_down_mixer_interface_init(void);
void sys_comp_tdfb_init(void);
void sys_comp_ghd_init(void);
void sys_comp_module_dts_interface_init(void);
@ -228,9 +227,6 @@ int task_main_start(struct sof *sof)
int start_complete(void)
{
if (IS_ENABLED(CONFIG_COMP_UP_DOWN_MIXER))
sys_comp_module_up_down_mixer_interface_init();
if (IS_ENABLED(CONFIG_COMP_TDFB))
sys_comp_tdfb_init();