From 0b537cba4d36f2ef22c02644de0a73df5b92b89c Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Mon, 28 Feb 2022 16:45:51 +0800 Subject: [PATCH] ipc4: init gain & mixin components for zephyr Fix issue of ipc4 pipeline initialization with zephyr enabled. Need to initialize these two components. Gain module is another type of volume without peak volume support and mixin has subset function of mixer. Signed-off-by: Rander Wang --- zephyr/wrapper.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 37b235efb..76ed4760d 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -540,6 +540,8 @@ void sys_comp_basefw_init(void); void sys_comp_copier_init(void); void sys_comp_codec_cadence_interface_init(void); void sys_comp_codec_passthrough_interface_init(void); +void sys_comp_gain_init(void); +void sys_comp_mixin_init(void); /* Zephyr redefines log_message() and mtrace_printf() which leaves * totally empty the .static_log_entries ELF sections for the @@ -577,10 +579,16 @@ int task_main_start(struct sof *sof) if (IS_ENABLED(CONFIG_COMP_VOLUME)) { sys_comp_volume_init(); + + if (IS_ENABLED(CONFIG_IPC_MAJOR_4)) + sys_comp_gain_init(); } if (IS_ENABLED(CONFIG_COMP_MIXER)) { sys_comp_mixer_init(); + + if (IS_ENABLED(CONFIG_IPC_MAJOR_4)) + sys_comp_mixin_init(); } if (IS_ENABLED(CONFIG_COMP_DAI)) {