Skip to content

Commit a46063c

Browse files
committed
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 <guennadi.liakhovetski@linux.intel.com>
1 parent 5bdbddb commit a46063c

5 files changed

Lines changed: 9 additions & 2 deletions

File tree

app/boards/intel_adsp_ace15_mtpm.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CONFIG_IPC4_BASE_FW_INTEL=y
44

55
CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y
66
CONFIG_COMP_SRC_LITE=y
7-
CONFIG_COMP_DRC=y
7+
CONFIG_COMP_DRC=m
88
CONFIG_COMP_CROSSOVER=y
99
CONFIG_COMP_MULTIBAND_DRC=y
1010

app/boards/intel_adsp_ace20_lnl.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CONFIG_IPC_MAJOR_4=y
33
CONFIG_IPC4_BASE_FW_INTEL=y
44

55
CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y
6-
CONFIG_COMP_DRC=y
6+
CONFIG_COMP_DRC=m
77

88
# power settings
99
CONFIG_PM=y

src/math/exp_fcn.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <sof/math/numbers.h>
1212
#include <sof/common.h>
1313
#include <rtos/bit.h>
14+
#include <rtos/symbol.h>
1415
#include <stdbool.h>
1516
#include <stdint.h>
1617
#include <stddef.h>
@@ -258,6 +259,7 @@ int32_t sofm_exp_fixed(int32_t x)
258259

259260
return y;
260261
}
262+
EXPORT_SYMBOL(sofm_exp_fixed);
261263

262264
#endif /* EXPONENTIAL_GENERIC */
263265

@@ -284,3 +286,4 @@ int32_t sofm_db2lin_fixed(int32_t db)
284286
arg = (int32_t)Q_MULTSR_32X32((int64_t)db, SOFM_EXP_LOG10_DIV20_Q27, 24, 27, 27);
285287
return sofm_exp_fixed(arg);
286288
}
289+
EXPORT_SYMBOL(sofm_db2lin_fixed);

src/math/exp_fcn_hifi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <sof/math/exp_fcn.h>
1010
#include <sof/common.h>
11+
#include <rtos/symbol.h>
1112
#include <stdbool.h>
1213
#include <stddef.h>
1314
#include <stdint.h>
@@ -370,5 +371,6 @@ int32_t sofm_exp_fixed(int32_t x)
370371

371372
return y;
372373
}
374+
EXPORT_SYMBOL(sofm_exp_fixed);
373375

374376
#endif

src/math/lut_trig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <sof/audio/format.h>
88
#include <sof/math/lut_trig.h>
9+
#include <rtos/symbol.h>
910
#include <stdint.h>
1011

1112
#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)
106107
sine = s0 + q_mults_32x32(frac, delta, Q_SHIFT_BITS_64(31, 16, 16)); /* Q1.16 */
107108
return sat_int16((sine + 1) >> 1); /* Round to Q1.15 */
108109
}
110+
EXPORT_SYMBOL(sofm_lut_sin_fixed_16b);

0 commit comments

Comments
 (0)