mirror of https://github.com/thesofproject/sof.git
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 <rander.wang@intel.com>
This commit is contained in:
parent
26e08d4d55
commit
0b537cba4d
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue