Skip to content

Commit 277b329

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 b9e6e14 commit 277b329

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
@@ -1151,6 +1151,7 @@ void ipc4_update_source_format(struct sof_source *source,
11511151
source_set_valid_fmt(source, valid_fmt);
11521152
source_set_buffer_fmt(source, fmt->interleaving_style);
11531153
}
1154+
EXPORT_SYMBOL(ipc4_update_source_format);
11541155

11551156
void ipc4_update_sink_format(struct sof_sink *sink,
11561157
const struct ipc4_audio_format *fmt)

0 commit comments

Comments
 (0)