Skip to content

Commit

Permalink
llext: export symbols, required for modular DRC
Browse files Browse the repository at this point in the history
Export additional symbols, required for building DRC as an LLEXT
object.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
  • Loading branch information
lyakh committed Jul 10, 2024
1 parent dfdd182 commit caae407
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
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 caae407

Please sign in to comment.