Skip to content

Commit

Permalink
llext: export symbols, needed by TDFB
Browse files Browse the repository at this point in the history
Modular TDFB needs additional exported symbols from Zephyr and SOF
core.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
  • Loading branch information
lyakh committed Feb 4, 2025
1 parent 055fa17 commit e5eb7de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ipc/ipc-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ void ipc_msg_send(struct ipc_msg *msg, void *data, bool high_priority)

k_spin_unlock(&ipc->lock, key);
}
EXPORT_SYMBOL(ipc_msg_send);

#ifdef __ZEPHYR__
static void ipc_work_handler(struct k_work *work)
Expand Down
2 changes: 2 additions & 0 deletions src/math/sqrt_int16.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
//

#include <rtos/symbol.h>
#include <sof/math/sqrt.h>

#define SQRT_WRAP_SCHAR_BITS 0xFF
Expand Down Expand Up @@ -145,3 +146,4 @@ uint16_t sqrt_int16(uint16_t u)

return y;
}
EXPORT_SYMBOL(sqrt_int16);
2 changes: 2 additions & 0 deletions src/math/trig.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// Keyon Jie <yang.jie@linux.intel.com>
// Shriram Shastry <malladi.sastry@linux.intel.com>

#include <rtos/symbol.h>
#include <sof/audio/format.h>
#include <sof/math/trig.h>
#include <sof/math/cordic.h>
Expand Down Expand Up @@ -99,6 +100,7 @@ void cordic_approx(int32_t th_rad_fxp, int32_t a_idx, int32_t *sign, int32_t *b_
/* Q2.30 format -sine, cosine*/
*th_cdc_fxp = th_rad_fxp;
}
EXPORT_SYMBOL(cordic_approx);

/**
* CORDIC-based approximation for inverse cosine
Expand Down

0 comments on commit e5eb7de

Please sign in to comment.