From 2d7432290fe2efd0efc4e11a31435c174665e3c2 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 19 Jun 2024 12:25:41 +0200 Subject: [PATCH] drc: make modular on MTL and LNL Export missing symbols for modular DRC builds and select it as a module on MTL and LNL. DRC isn't built by default, so we cannot use CONFIG_LIBRARY_DEFAULT_MODULAR for it. Signed-off-by: Guennadi Liakhovetski --- app/boards/intel_adsp_ace15_mtpm.conf | 2 +- app/boards/intel_adsp_ace20_lnl.conf | 2 +- src/math/exp_fcn.c | 3 +++ src/math/exp_fcn_hifi.c | 2 ++ src/math/lut_trig.c | 2 ++ 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/boards/intel_adsp_ace15_mtpm.conf b/app/boards/intel_adsp_ace15_mtpm.conf index 758fb5260781..33a38d60bb22 100644 --- a/app/boards/intel_adsp_ace15_mtpm.conf +++ b/app/boards/intel_adsp_ace15_mtpm.conf @@ -4,7 +4,7 @@ CONFIG_IPC4_BASE_FW_INTEL=y CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y CONFIG_COMP_SRC_LITE=y -CONFIG_COMP_DRC=y +CONFIG_COMP_DRC=m CONFIG_COMP_CROSSOVER=y CONFIG_COMP_MULTIBAND_DRC=y diff --git a/app/boards/intel_adsp_ace20_lnl.conf b/app/boards/intel_adsp_ace20_lnl.conf index 446546401251..f7f219a5db68 100644 --- a/app/boards/intel_adsp_ace20_lnl.conf +++ b/app/boards/intel_adsp_ace20_lnl.conf @@ -3,7 +3,7 @@ CONFIG_IPC_MAJOR_4=y CONFIG_IPC4_BASE_FW_INTEL=y CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y -CONFIG_COMP_DRC=y +CONFIG_COMP_DRC=m # power settings CONFIG_PM=y diff --git a/src/math/exp_fcn.c b/src/math/exp_fcn.c index 2bace8a430cc..6ada84202212 100644 --- a/src/math/exp_fcn.c +++ b/src/math/exp_fcn.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -258,6 +259,7 @@ int32_t sofm_exp_fixed(int32_t x) return y; } +EXPORT_SYMBOL(sofm_exp_fixed); #endif /* EXPONENTIAL_GENERIC */ @@ -284,3 +286,4 @@ int32_t sofm_db2lin_fixed(int32_t db) arg = (int32_t)Q_MULTSR_32X32((int64_t)db, SOFM_EXP_LOG10_DIV20_Q27, 24, 27, 27); return sofm_exp_fixed(arg); } +EXPORT_SYMBOL(sofm_db2lin_fixed); diff --git a/src/math/exp_fcn_hifi.c b/src/math/exp_fcn_hifi.c index f0a263b76873..10775133e8a4 100644 --- a/src/math/exp_fcn_hifi.c +++ b/src/math/exp_fcn_hifi.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -370,5 +371,6 @@ int32_t sofm_exp_fixed(int32_t x) return y; } +EXPORT_SYMBOL(sofm_exp_fixed); #endif diff --git a/src/math/lut_trig.c b/src/math/lut_trig.c index 5c88b957d413..a40729327932 100644 --- a/src/math/lut_trig.c +++ b/src/math/lut_trig.c @@ -6,6 +6,7 @@ #include #include +#include #include #define SOFM_LUT_SINE_C_Q20 341782638 /* 2 * SINE_NQUART / pi in Q12.20 */ @@ -106,3 +107,4 @@ int16_t sofm_lut_sin_fixed_16b(int32_t w) sine = s0 + q_mults_32x32(frac, delta, Q_SHIFT_BITS_64(31, 16, 16)); /* Q1.16 */ return sat_int16((sine + 1) >> 1); /* Round to Q1.15 */ } +EXPORT_SYMBOL(sofm_lut_sin_fixed_16b);