From 3d040c72430c30333dc4823547906dd33671bdae Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Mon, 25 Sep 2023 18:42:51 +0300 Subject: [PATCH] Tools: Testbench: Add Google RTC with mockup to testbench This patch allows to load and run it in testbench. Signed-off-by: Seppo Ingalsuo --- src/arch/host/configs/library_defconfig | 2 ++ src/audio/google/CMakeLists.txt | 3 +-- tools/testbench/common_test.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/arch/host/configs/library_defconfig b/src/arch/host/configs/library_defconfig index 6de2eef3333f..071e30808f3c 100644 --- a/src/arch/host/configs/library_defconfig +++ b/src/arch/host/configs/library_defconfig @@ -3,6 +3,7 @@ CONFIG_COMP_CROSSOVER=y CONFIG_COMP_DCBLOCK=y CONFIG_COMP_DRC=y CONFIG_COMP_FIR=y +CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING=y CONFIG_COMP_IIR=y CONFIG_COMP_MFCC=y CONFIG_COMP_MODULE_ADAPTER=y @@ -11,6 +12,7 @@ CONFIG_COMP_MUX=y CONFIG_COMP_SEL=y CONFIG_COMP_SRC=y CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y +CONFIG_COMP_STUBS=y CONFIG_COMP_TDFB=y CONFIG_COMP_VOLUME=y CONFIG_COMP_VOLUME_LINEAR_RAMP=y diff --git a/src/audio/google/CMakeLists.txt b/src/audio/google/CMakeLists.txt index 480766c2f4d5..3936c8041b67 100644 --- a/src/audio/google/CMakeLists.txt +++ b/src/audio/google/CMakeLists.txt @@ -1,7 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause - -if(NOT CONFIG_LIBRARY) +if((NOT CONFIG_LIBRARY) OR CONFIG_LIBRARY_STATIC) if(CONFIG_COMP_GOOGLE_HOTWORD_DETECT) add_local_sources(sof google_hotword_detect.c diff --git a/tools/testbench/common_test.c b/tools/testbench/common_test.c index 221d6ba93d5c..87d815a5bbae 100644 --- a/tools/testbench/common_test.c +++ b/tools/testbench/common_test.c @@ -54,6 +54,7 @@ int tb_setup(struct sof *sof, struct testbench_prm *tp) sys_comp_module_drc_interface_init(); sys_comp_module_eq_fir_interface_init(); sys_comp_module_eq_iir_interface_init(); + sys_comp_module_google_rtc_audio_processing_interface_init(); sys_comp_module_multiband_drc_interface_init(); sys_comp_module_mux_interface_init(); sys_comp_module_src_interface_init();