Skip to content

Commit 86a738c

Browse files
committed
audio: export symbols for LLEXT module compatibility
This patch exports the symbols `comp_is_current_data_blob_valid` and `ipc4_update_source_format` to resolve issues encountered when the Google RTC module was converted into an LLEXT module. The lack of exported symbols was causing warnings and subsequent firmware exceptions when these functions were called from within the module. Changes include: - Adding `EXPORT_SYMBOL` for `comp_is_current_data_blob_valid` in src/audio/data_blob.c. - Adding `EXPORT_SYMBOL` for `ipc4_update_source_format` in src/ipc/ipc4/helper.c. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent 800f6ce commit 86a738c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/audio/data_blob.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ bool comp_is_current_data_blob_valid(struct comp_data_blob_handler
128128
{
129129
return !!blob_handler->data;
130130
}
131+
EXPORT_SYMBOL(comp_is_current_data_blob_valid);
131132

132133
int comp_init_data_blob(struct comp_data_blob_handler *blob_handler,
133134
uint32_t size, const void *init_data)

src/ipc/ipc4/helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ void ipc4_update_source_format(struct sof_source *source,
12181218
source_set_valid_fmt(source, valid_fmt);
12191219
source_set_buffer_fmt(source, fmt->interleaving_style);
12201220
}
1221+
EXPORT_SYMBOL(ipc4_update_source_format);
12211222

12221223
void ipc4_update_sink_format(struct sof_sink *sink,
12231224
const struct ipc4_audio_format *fmt)

0 commit comments

Comments
 (0)