From bc6888ecabedcdd4ad74a58f52dc62f182c38c1d Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Wed, 5 May 2021 17:15:17 +0300 Subject: [PATCH] zephyr: add sample-smart-amp component to the wrapper Add the sample-smart-amp to the wrapper build if the component is enabled in build config. Signed-off-by: Kai Vehmanen --- zephyr/CMakeLists.txt | 4 ++++ zephyr/wrapper.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 541b90607..7ff591b26 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -479,6 +479,10 @@ zephyr_library_sources_ifdef(CONFIG_COMP_SRC ${SOF_AUDIO_PATH}/src/src.c ) +zephyr_library_sources_ifdef(CONFIG_SAMPLE_SMART_AMP + ${SOF_SAMPLES_PATH}/audio/smart_amp_test.c +) + zephyr_library_sources_ifdef(CONFIG_COMP_MUX ${SOF_AUDIO_PATH}/mux/mux.c ${SOF_AUDIO_PATH}/mux/mux_generic.c diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 1150a6bb2..7f097cb76 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -397,6 +397,7 @@ void sys_comp_keyword_init(void); void sys_comp_asrc_init(void); void sys_comp_dcblock_init(void); void sys_comp_eq_iir_init(void); +void sys_comp_smart_amp_init(void); int task_main_start(struct sof *sof) { @@ -451,6 +452,10 @@ int task_main_start(struct sof *sof) sys_comp_keyword_init(); } + if (IS_ENABLED(CONFIG_SAMPLE_SMART_AMP)) { + sys_comp_smart_amp_init(); + } + if (IS_ENABLED(CONFIG_COMP_ASRC)) { sys_comp_asrc_init(); }