math: add config item for fft library

Add config item MATH_FFT and disable it by default at the moment.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2020-11-26 18:38:29 +08:00
parent d2cfa10f50
commit c80350cc3b
2 changed files with 10 additions and 0 deletions

View File

@ -71,6 +71,12 @@ config MATH_FIR
filter calculates a convolution of input PCM sample and a configurable
impulse response.
config MATH_FFT
bool "FFT library"
default n
help
Enable Fast Fourier Transform library, this should not be selected
directly, please select it from other audio components where need it.
config COMP_FIR
bool "FIR component"

View File

@ -9,3 +9,7 @@ add_local_sources(sof numbers.c trig.c decibels.c iir_df2t_generic.c iir_df2t_hi
if(CONFIG_MATH_FIR)
add_local_sources(sof fir_generic.c fir_hifi2ep.c fir_hifi3.c)
endif()
if(CONFIG_MATH_FFT)
add_subdirectory(fft)
endif()