forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mux: enable building as an llext module
Add support for LLEXT building to mux. Signed-off-by: Guennadi Liakhovetski <[email protected]>
- Loading branch information
Showing
9 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2024 Intel Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
sof_llext_build("mux" | ||
SOURCES ../mux.c | ||
../mux_generic.c | ||
../mux_ipc4.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <tools/rimage/config/platform.toml> | ||
#define LOAD_TYPE "2" | ||
#include "../mux.toml" | ||
[module] | ||
count = __COUNTER__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ | |
// Author: Liam Girdwood <[email protected]> | ||
// Artur Kloniecki <[email protected]> | ||
|
||
#if CONFIG_COMP_MUX | ||
|
||
#include <sof/audio/module_adapter/module/generic.h> | ||
#include <sof/audio/component.h> | ||
#include <sof/audio/data_blob.h> | ||
|
@@ -486,4 +484,25 @@ static const struct module_interface demux_interface = { | |
DECLARE_MODULE_ADAPTER(demux_interface, demux_uuid, demux_tr); | ||
SOF_MODULE_INIT(demux, sys_comp_module_demux_interface_init); | ||
|
||
#endif /* CONFIG_COMP_MUX */ | ||
#if CONFIG_COMP_VOLUME_MODULE | ||
/* modular: llext dynamic link */ | ||
|
||
#include <module/module/api_ver.h> | ||
#include <module/module/llext.h> | ||
#include <rimage/sof/user/manifest.h> | ||
|
||
#define UUID_MUX 0x35, 0x6E, 0xCE, 0x64, 0x7A, 0x85, 0x78, 0x48, 0xE8, 0xAC, \ | ||
0xE2, 0xA2, 0xF4, 0x2E, 0x30, 0x69 | ||
SOF_LLEXT_MOD_ENTRY(mux, &mux_interface); | ||
|
||
#define UUID_DEMUX 0x68, 0x68, 0xB2, 0xC4, 0x30, 0x14, 0x0E, 0x47, 0x89, 0xA0, \ | ||
0x15, 0xD1, 0xC7, 0x7F, 0x85, 0x1A | ||
SOF_LLEXT_MOD_ENTRY(demux, &demux_interface); | ||
|
||
static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used = { | ||
SOF_LLEXT_MODULE_MANIFEST("MUX", mux_llext_entry, 1, UUID_MUX, 15), | ||
SOF_LLEXT_MODULE_MANIFEST("DEMUX", demux_llext_entry, 1, UUID_DEMUX, 15), | ||
}; | ||
|
||
SOF_LLEXT_BUILDINFO; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters