Skip to content

Commit

Permalink
rimage: manifest: llext: Get uuid from registry & change uuid type
Browse files Browse the repository at this point in the history
Change the UUID storage type in the module manifest to a sof-compatible
structure to enable retrieval of the UUIDs from the registry. Obtain the
UUIDs of loadable llext modules from the uuid-registry.

Signed-off-by: Adrian Warecki <[email protected]>
  • Loading branch information
softwarecki committed Jan 23, 2025
1 parent 8a66cfa commit 16ea3b4
Show file tree
Hide file tree
Showing 25 changed files with 40 additions and 103 deletions.
5 changes: 1 addition & 4 deletions src/audio/aria/aria.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,10 @@ SOF_MODULE_INIT(aria, sys_comp_module_aria_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_ARIA 0x6D, 0x16, 0xF7, 0x99, 0x2C, 0x37, 0xEF, 0x43, 0xF6, 0x81, \
0x22, 0x00, 0x7A, 0xA1, 0x5F, 0x03

SOF_LLEXT_MOD_ENTRY(aria, &aria_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("ARIA", aria_llext_entry, 1, UUID_ARIA, 8);
SOF_LLEXT_MODULE_MANIFEST("ARIA", aria_llext_entry, 1, SOF_REG_UUID(aria), 8);

SOF_LLEXT_BUILDINFO;

Expand Down
4 changes: 1 addition & 3 deletions src/audio/asrc/asrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,12 +879,10 @@ SOF_MODULE_INIT(asrc, sys_comp_module_asrc_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_ASRC 0x2d, 0x40, 0xb4, 0x66, 0x68, 0xb4, 0xf2, 0x42, \
0x81, 0xa7, 0xb3, 0x71, 0x21, 0x86, 0x3d, 0xd4
SOF_LLEXT_MOD_ENTRY(asrc, &asrc_interface);

static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used = {
SOF_LLEXT_MODULE_MANIFEST("ASRC", asrc_llext_entry, 1, UUID_ASRC, 2),
SOF_LLEXT_MODULE_MANIFEST("ASRC", asrc_llext_entry, 1, SOF_REG_UUID(asrc4), 2),
};

SOF_LLEXT_BUILDINFO;
Expand Down
5 changes: 1 addition & 4 deletions src/audio/codec/dts/dts.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,10 @@ SOF_MODULE_INIT(dts, sys_comp_module_dts_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_DTS 0x4F, 0xC3, 0x5F, 0xD9, 0x0F, 0x37, 0xC7, 0x4A, 0x86, 0xBC, \
0xBF, 0xDC, 0x5B, 0xE2, 0x41, 0xE6

SOF_LLEXT_MOD_ENTRY(dts, &dts_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("DTS", dts_llext_entry, 1, UUID_DTS, 40);
SOF_LLEXT_MODULE_MANIFEST("DTS", dts_llext_entry, 1, SOF_REG_UUID(dts), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/crossover/crossover.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,13 +639,10 @@ SOF_MODULE_INIT(crossover, sys_comp_module_crossover_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_CROSSOVER 0xD1, 0x9A, 0x8C, 0x94, 0x6A, 0x80, 0x31, 0x41, 0x6C, 0xAD, \
0xB2, 0xBD, 0xA9, 0xE3, 0x5A, 0x9F

SOF_LLEXT_MOD_ENTRY(crossover, &crossover_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("XOVER", crossover_llext_entry, 1, UUID_CROSSOVER, 40);
SOF_LLEXT_MODULE_MANIFEST("XOVER", crossover_llext_entry, 1, SOF_REG_UUID(crossover), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/dcblock/dcblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,10 @@ SOF_MODULE_INIT(dcblock, sys_comp_module_dcblock_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_DCBLOCK 0xAF, 0xEF, 0x09, 0xB8, 0x81, 0x56, 0xB1, 0x42, 0xD6, 0x9E, \
0x04, 0xBB, 0x01, 0x2D, 0xD3, 0x84

SOF_LLEXT_MOD_ENTRY(dcblock, &dcblock_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("DCBLOCK", dcblock_llext_entry, 1, UUID_DCBLOCK, 40);
SOF_LLEXT_MODULE_MANIFEST("DCBLOCK", dcblock_llext_entry, 1, SOF_REG_UUID(dcblock), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/drc/drc.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,10 @@ SOF_MODULE_INIT(drc, sys_comp_module_drc_interface_init);
#include <module/module/api_ver.h>
#include <rimage/sof/user/manifest.h>

#define UUID_DRC 0xda, 0xe4, 0x6e, 0xb3, 0x6f, 0x00, 0xf9, 0x47, \
0xa0, 0x6d, 0xfe, 0xcb, 0xe2, 0xd8, 0xb6, 0xce

SOF_LLEXT_MOD_ENTRY(drc, &drc_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("DRC", drc_llext_entry, 1, UUID_DRC, 40);
SOF_LLEXT_MODULE_MANIFEST("DRC", drc_llext_entry, 1, SOF_REG_UUID(drc), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/eq_fir/eq_fir.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,10 @@ SOF_MODULE_INIT(eq_fir, sys_comp_module_eq_fir_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_EQFIR 0xe7, 0x0c, 0xa9, 0x43, 0xa5, 0xf3, 0xdf, 0x41, \
0xac, 0x06, 0xba, 0x98, 0x65, 0x1a, 0xe6, 0xa3

SOF_LLEXT_MOD_ENTRY(eq_fir, &eq_fir_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("EQFIR", eq_fir_llext_entry, 1, UUID_EQFIR, 40);
SOF_LLEXT_MODULE_MANIFEST("EQFIR", eq_fir_llext_entry, 1, SOF_REG_UUID(eq_fir), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/eq_iir/eq_iir.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,10 @@ SOF_MODULE_INIT(eq_iir, sys_comp_module_eq_iir_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_EQIIR 0xE6, 0xC0, 0x50, 0x51, 0xF9, 0x27, 0xC8, 0x4E, \
0x83, 0x51, 0xC7, 0x05, 0xB6, 0x42, 0xD1, 0x2F

SOF_LLEXT_MOD_ENTRY(eq_iir, &eq_iir_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("EQIIR", eq_iir_llext_entry, 1, UUID_EQIIR, 40);
SOF_LLEXT_MODULE_MANIFEST("EQIIR", eq_iir_llext_entry, 1, SOF_REG_UUID(eq_iir), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/google/google_ctc_audio_processing.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,14 +466,11 @@ SOF_MODULE_INIT(google_ctc_audio_processing,
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_GOOGLE_CTC 0xBC, 0x1B, 0x0E, 0xBF, 0x6A, 0xDC, 0xFE, 0x45, 0x90, 0xBC, \
0x25, 0x54, 0xCB, 0x13, 0x7A, 0xB4

SOF_LLEXT_MOD_ENTRY(google_ctc_audio_processing, &google_ctc_audio_processing_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("CTC", google_ctc_audio_processing_llext_entry,
1, UUID_GOOGLE_CTC, 40);
1, SOF_REG_UUID(google_ctc_audio_processing), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/google/google_rtc_audio_processing.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,14 +861,11 @@ SOF_MODULE_INIT(google_rtc_audio_processing,
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_GOOGLE_RTC_AEC 0xA6, 0xA0, 0x80, 0xB7, 0x9F, 0x26, 0x6F, 0x46, 0x77, 0xB4, \
0x23, 0xDF, 0xA0, 0x5A, 0xF7, 0x58

SOF_LLEXT_MOD_ENTRY(google_rtc_audio_processing, &google_rtc_audio_processing_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("RTC_AEC", google_rtc_audio_processing_llext_entry,
7, UUID_GOOGLE_RTC_AEC, 1);
7, SOF_REG_UUID(google_rtc_audio_processing), 1);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/igo_nr/igo_nr.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,13 +893,10 @@ SOF_MODULE_INIT(igo_nr, sys_comp_module_igo_nr_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_IGO_NR 0xBC, 0xE2, 0x6A, 0x69, 0x77, 0x28, 0xEB, 0x11, 0xC1, 0xAD, \
0x02, 0x42, 0xAC, 0x12, 0x00, 0x02

SOF_LLEXT_MOD_ENTRY(igo_nr, &igo_nr_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("IGO_NR", igo_nr_llext_entry, 1, UUID_IGO_NR, 40);
SOF_LLEXT_MODULE_MANIFEST("IGO_NR", igo_nr_llext_entry, 1, SOF_REG_UUID(igo_nr), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
5 changes: 1 addition & 4 deletions src/audio/mfcc/mfcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,10 @@ SOF_MODULE_INIT(mfcc, sys_comp_module_mfcc_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_MFCC 0x73, 0xA7, 0x10, 0xDB, 0xA4, 0x1A, 0xEA, 0x4C, 0x1F, 0xA2, \
0x2D, 0x57, 0xA5, 0xC9, 0x82, 0xEB

SOF_LLEXT_MOD_ENTRY(mfcc, &mfcc_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("MFCC", mfcc_llext_entry, 1, UUID_MFCC, 40);
SOF_LLEXT_MODULE_MANIFEST("MFCC", mfcc_llext_entry, 1, SOF_REG_UUID(mfcc), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
9 changes: 2 additions & 7 deletions src/audio/mixin_mixout/mixin_mixout.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,18 +949,13 @@ SOF_MODULE_INIT(mixout, sys_comp_module_mixout_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_MIXIN 0xB2, 0x6E, 0x65, 0x39, 0x71, 0x3B, 0x49, 0x40, \
0x8D, 0x3F, 0xF9, 0x2C, 0xD5, 0xC4, 0x3C, 0x09
#define UUID_MIXOUT 0x5A, 0x50, 0x56, 0x3C, 0xD7, 0x24, 0x8F, 0x41, \
0xBD, 0xDC, 0xC1, 0xF5, 0xA3, 0xAC, 0x2A, 0xE0

SOF_LLEXT_MOD_ENTRY(mixin, &mixin_interface);
SOF_LLEXT_MOD_ENTRY(mixout, &mixout_interface);

static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used =
{
SOF_LLEXT_MODULE_MANIFEST("MIXIN", mixin_llext_entry, 1, UUID_MIXIN, 30),
SOF_LLEXT_MODULE_MANIFEST("MIXOUT", mixout_llext_entry, 1, UUID_MIXOUT, 30),
SOF_LLEXT_MODULE_MANIFEST("MIXIN", mixin_llext_entry, 1, SOF_REG_UUID(mixin), 30),
SOF_LLEXT_MODULE_MANIFEST("MIXOUT", mixout_llext_entry, 1, SOF_REG_UUID(mixout), 30),
};

SOF_LLEXT_BUILDINFO;
Expand Down
7 changes: 1 addition & 6 deletions src/audio/module_adapter/module/waves/waves.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,15 +907,10 @@ SOF_MODULE_INIT(waves, sys_comp_module_waves_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

/* d944281a-afe9-4695-a043-d7f62b89538e */
#define UUID_WAVES_CODEC 0x1A, 0x28, 0x44, 0xD9, 0xE9, 0xAF, 0x95, 0x46, \
0xA0, 0x43, 0xD7, 0xF6, 0x2B, 0x89, 0x53, 0x8E

SOF_LLEXT_MOD_ENTRY(waves, &waves_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("WAVES", waves_llext_entry,
7, UUID_WAVES_CODEC, 8);
SOF_LLEXT_MODULE_MANIFEST("WAVES", waves_llext_entry, 7, SOF_REG_UUID(waves), 8);

SOF_LLEXT_BUILDINFO;

Expand Down
6 changes: 2 additions & 4 deletions src/audio/multiband_drc/multiband_drc.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,11 @@ SOF_MODULE_INIT(multiband_drc, sys_comp_module_multiband_drc_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_MULTIBAND_DRC 0x56, 0x22, 0x9F, 0x0D, 0x4F, 0x8E, 0xB3, 0x47, 0x48, 0x84, \
0x23, 0x9A, 0x33, 0x4F, 0x11, 0x91

SOF_LLEXT_MOD_ENTRY(multiband_drc, &multiband_drc_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("MB_DRC", multiband_drc_llext_entry, 1, UUID_MULTIBAND_DRC, 40);
SOF_LLEXT_MODULE_MANIFEST("MB_DRC", multiband_drc_llext_entry, 1,
SOF_REG_UUID(multiband_drc), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
8 changes: 2 additions & 6 deletions src/audio/mux/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,24 +482,20 @@ SOF_MODULE_INIT(demux, sys_comp_module_demux_interface_init);
#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);

/*
* The demux entry is removed because mtl.toml doesn't have an entry
* for it. Once that is fixed, the manifest line below can be
* re-activated:
* #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("MUX", mux_llext_entry, 1, SOF_REG_UUID(mux4), 15),
/*
* See comment above for a demux deactivation reason
* SOF_LLEXT_MODULE_MANIFEST("DEMUX", demux_llext_entry, 1, UUID_DEMUX, 15),
* SOF_LLEXT_MODULE_MANIFEST("DEMUX", demux_llext_entry, 1, SOF_REG_UUID(demux), 15),
*/
};

Expand Down
6 changes: 1 addition & 5 deletions src/audio/rtnr/rtnr.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,14 +876,10 @@ SOF_MODULE_INIT(rtnr, sys_comp_module_rtnr_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

/* 5c7ca334-e15d-11eb-ba800242ac130004 */
#define UUID_RTNR 0x34, 0xA3, 0x7C, 0x5C, 0x5D, 0xE1, 0xEB, 0x11, \
0xBA, 0x80, 0x02, 0x42, 0xAC, 0x13, 0x00, 0x04

SOF_LLEXT_MOD_ENTRY(rtnr, &rtnr_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("RTNR", rtnr_llext_entry, 1, UUID_RTNR, 40);
SOF_LLEXT_MODULE_MANIFEST("RTNR", rtnr_llext_entry, 1, SOF_REG_UUID(rtnr), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
6 changes: 2 additions & 4 deletions src/audio/selector/selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,13 +923,11 @@ SOF_MODULE_INIT(selector, sys_comp_module_selector_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_SELECTOR 0x32, 0xFE, 0x92, 0xC1, 0x17, 0x1E, 0xC2, 0x4F, 0x58, 0x97, \
0xC7, 0xF3, 0x54, 0x2E, 0x98, 0x0A

SOF_LLEXT_MOD_ENTRY(selector, &selector_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("MICSEL", selector_llext_entry, 1, UUID_SELECTOR, 8);
SOF_LLEXT_MODULE_MANIFEST("MICSEL", selector_llext_entry, 1, SOF_REG_UUID(selector4),
8);

SOF_LLEXT_BUILDINFO;

Expand Down
9 changes: 3 additions & 6 deletions src/audio/src/src.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,18 @@ SOF_MODULE_INIT(src, sys_comp_module_src_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_SRC 0x8D, 0xB2, 0x1B, 0xE6, 0x9A, 0x14, 0x1F, 0x4C, \
0xB7, 0x09, 0x46, 0x82, 0x3E, 0xF5, 0xF5, 0xAE
SOF_LLEXT_MOD_ENTRY(src, &src_interface);

#if CONFIG_COMP_SRC_LITE
#define UUID_SRC_LITE 0x51, 0x10, 0x44, 0x33, 0xCD, 0x44, 0x6A, 0x46, \
0x83, 0xA3, 0x17, 0x84, 0x78, 0x70, 0x8A, 0xEA
extern const struct module_interface src_lite_interface;
SOF_LLEXT_MOD_ENTRY(src_lite, &src_lite_interface);
#endif

static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used = {
SOF_LLEXT_MODULE_MANIFEST("SRC", src_llext_entry, 1, UUID_SRC, 1),
SOF_LLEXT_MODULE_MANIFEST("SRC", src_llext_entry, 1, SOF_REG_UUID(src4), 1),
#if CONFIG_COMP_SRC_LITE
SOF_LLEXT_MODULE_MANIFEST("SRC_LITE", src_lite_llext_entry, 1, UUID_SRC_LITE, 1),
SOF_LLEXT_MODULE_MANIFEST("SRC_LITE", src_lite_llext_entry, 1, SOF_REG_UUID(src_lite),
1),
#endif
};

Expand Down
5 changes: 1 addition & 4 deletions src/audio/tdfb/tdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,13 +831,10 @@ SOF_MODULE_INIT(tdfb, sys_comp_module_tdfb_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_TDFB 0x49, 0x17, 0x51, 0xdd, 0xfa, 0xd9, 0x5c, 0x45, 0xb3, 0xa7, \
0x13, 0x58, 0x56, 0x93, 0xf1, 0xaf

SOF_LLEXT_MOD_ENTRY(tdfb, &tdfb_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("TDFB", tdfb_llext_entry, 1, UUID_TDFB, 40);
SOF_LLEXT_MODULE_MANIFEST("TDFB", tdfb_llext_entry, 1, SOF_REG_UUID(tdfb), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
8 changes: 2 additions & 6 deletions src/audio/volume/volume.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,23 +820,19 @@ SOF_MODULE_INIT(gain, sys_comp_module_gain_interface_init);
#include <rimage/sof/user/manifest.h>

#if CONFIG_COMP_PEAK_VOL
#define UUID_PEAKVOL 0x23, 0x13, 0x17, 0x8a, 0xa3, 0x94, 0x1d, 0x4e, \
0xaf, 0xe9, 0xfe, 0x5d, 0xba, 0xa4, 0xc3, 0x93
SOF_LLEXT_MOD_ENTRY(peakvol, &volume_interface);
#endif

#if CONFIG_COMP_GAIN
#define UUID_GAIN 0xa8, 0xa9, 0xbc, 0x61, 0xd0, 0x18, 0x18, 0x4a, \
0x8e, 0x7b, 0x26, 0x39, 0x21, 0x98, 0x04, 0xb7
SOF_LLEXT_MOD_ENTRY(gain, &gain_interface);
#endif

static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used = {
#if CONFIG_COMP_PEAK_VOL
SOF_LLEXT_MODULE_MANIFEST("PEAKVOL", peakvol_llext_entry, 1, UUID_PEAKVOL, 10),
SOF_LLEXT_MODULE_MANIFEST("PEAKVOL", peakvol_llext_entry, 1, SOF_REG_UUID(volume), 10),
#endif
#if CONFIG_COMP_GAIN
SOF_LLEXT_MODULE_MANIFEST("GAIN", gain_llext_entry, 1, UUID_GAIN, 40),
SOF_LLEXT_MODULE_MANIFEST("GAIN", gain_llext_entry, 1, SOF_REG_UUID(gain), 40),
#endif
};

Expand Down
2 changes: 1 addition & 1 deletion src/include/module/module/llext.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{ \
.module = { \
.name = manifest_name, \
.uuid = {mod_uuid}, \
.uuid = mod_uuid, \
.entry_point = (uint32_t)(entry), \
.instance_max_count = instances, \
.type = { \
Expand Down
5 changes: 1 addition & 4 deletions src/probe/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,13 +1620,10 @@ SOF_MODULE_INIT(probe, sys_comp_module_probe_interface_init);
#include <module/module/llext.h>
#include <rimage/sof/user/manifest.h>

#define UUID_PROBE 0x08, 0x08, 0xAD, 0x7C, 0x10, 0xAB, 0x23, 0xCD, 0xEF, 0x45, \
0x12, 0xAB, 0x34, 0xCD, 0x56, 0xEF,

SOF_LLEXT_MOD_ENTRY(probe, &probe_interface);

static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
SOF_LLEXT_MODULE_MANIFEST("PROBE", probe_llext_entry, 1, UUID_PROBE, 40);
SOF_LLEXT_MODULE_MANIFEST("PROBE", probe_llext_entry, 1, SOF_REG_UUID(probe4), 40);

SOF_LLEXT_BUILDINFO;

Expand Down
4 changes: 2 additions & 2 deletions src/samples/audio/smart_amp_test_ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ SOF_LLEXT_MOD_ENTRY(smart_amp_test, &smart_amp_test_interface);
static const struct sof_man_module_manifest main_manifest __section(".module") __attribute__((used)) = {
.module = {
.name = "SMATEST",
.uuid = {0x1E, 0x96, 0x7A, 0x16, 0xE4, 0x8A, 0xEA, 0x11,
0x89, 0xF1, 0x00, 0x0C, 0x29, 0xCE, 0x16, 0x35},
.uuid = { 0x167A961E, 0x8AE4, 0x11EA, { 0x89, 0xF1, 0x00, 0x0C, 0x29, 0xCE, 0x16,
0x35 }},
.entry_point = (uint32_t)smart_amp_test_llext_entry,
.instance_max_count = 1,
.type = {
Expand Down
Loading

0 comments on commit 16ea3b4

Please sign in to comment.