Kconfig: make Tone component a config option

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
Adrian Bonislawski 2019-02-11 13:01:16 +01:00 committed by Marcin Maka
parent aa94d2373d
commit fa6b2c6c33
5 changed files with 17 additions and 1 deletions

View File

@ -13,6 +13,7 @@ set(CONFIG_COMP_VOLUME 1)
set(CONFIG_COMP_SRC 1)
set(CONFIG_COMP_FIR 1)
set(CONFIG_COMP_IIR 1)
set(CONFIG_COMP_TONE 1)
configure_file (
"${PROJECT_SOURCE_DIR}/src/arch/host/config.h.in"

View File

@ -4,3 +4,4 @@
#define CONFIG_COMP_SRC @CONFIG_COMP_SRC@
#define CONFIG_COMP_FIR @CONFIG_COMP_FIR@
#define CONFIG_COMP_IIR @CONFIG_COMP_IIR@
#define CONFIG_COMP_TONE @CONFIG_COMP_TONE@

View File

@ -1,6 +1,5 @@
if(NOT BUILD_HOST)
add_local_sources(sof
tone.c
mixer.c
mux.c
switch.c
@ -40,6 +39,11 @@ if(NOT BUILD_HOST)
iir.c
)
endif()
if(CONFIG_COMP_TONE)
add_local_sources(sof
tone.c
)
endif()
return()
endif()

View File

@ -24,4 +24,10 @@ config COMP_IIR
help
Select for IIR component
config COMP_TONE
bool "Tone component"
default y
help
Select for Tone component
endmenu

View File

@ -510,7 +510,11 @@ void sys_comp_src_init(void);
#else
static inline void sys_comp_src_init(void) {}
#endif
#ifdef CONFIG_COMP_TONE
void sys_comp_tone_init(void);
#else
static inline void sys_comp_tone_init(void) {}
#endif
#ifdef CONFIG_COMP_IIR
void sys_comp_eq_iir_init(void);
#else