Skip to content

Commit

Permalink
drc: make modular on MTL and LNL
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lyakh committed Jun 26, 2024
1 parent 87cd5ba commit 9c4ff6d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/boards/intel_adsp_ace15_mtpm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/boards/intel_adsp_ace20_lnl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/math/exp_fcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <sof/math/numbers.h>
#include <sof/common.h>
#include <rtos/bit.h>
#include <rtos/symbol.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
Expand Down Expand Up @@ -258,6 +259,7 @@ int32_t sofm_exp_fixed(int32_t x)

return y;
}
EXPORT_SYMBOL(sofm_exp_fixed);

#endif /* EXPONENTIAL_GENERIC */

Expand All @@ -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);
2 changes: 2 additions & 0 deletions src/math/exp_fcn_hifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <sof/math/exp_fcn.h>
#include <sof/common.h>
#include <rtos/symbol.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Expand Down Expand Up @@ -370,5 +371,6 @@ int32_t sofm_exp_fixed(int32_t x)

return y;
}
EXPORT_SYMBOL(sofm_exp_fixed);

#endif
2 changes: 2 additions & 0 deletions src/math/lut_trig.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <sof/audio/format.h>
#include <sof/math/lut_trig.h>
#include <rtos/symbol.h>
#include <stdint.h>

#define SOFM_LUT_SINE_C_Q20 341782638 /* 2 * SINE_NQUART / pi in Q12.20 */
Expand Down Expand Up @@ -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);

0 comments on commit 9c4ff6d

Please sign in to comment.