Skip to content

Commit 239decb

Browse files
committed
rimage: manifest: llext: Get uuid from registry & change uuid type
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 <adrian.warecki@intel.com>
1 parent 71c3d60 commit 239decb

File tree

24 files changed

+38
-101
lines changed

24 files changed

+38
-101
lines changed

src/audio/aria/aria.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,10 @@ SOF_MODULE_INIT(aria, sys_comp_module_aria_interface_init);
319319
#include <module/module/llext.h>
320320
#include <rimage/sof/user/manifest.h>
321321

322-
#define UUID_ARIA 0x6D, 0x16, 0xF7, 0x99, 0x2C, 0x37, 0xEF, 0x43, 0xF6, 0x81, \
323-
0x22, 0x00, 0x7A, 0xA1, 0x5F, 0x03
324-
325322
SOF_LLEXT_MOD_ENTRY(aria, &aria_interface);
326323

327324
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
328-
SOF_LLEXT_MODULE_MANIFEST("ARIA", aria_llext_entry, 1, UUID_ARIA, 8);
325+
SOF_LLEXT_MODULE_MANIFEST("ARIA", aria_llext_entry, 1, SOF_REG_UUID(aria), 8);
329326

330327
SOF_LLEXT_BUILDINFO;
331328

src/audio/asrc/asrc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,12 +879,10 @@ SOF_MODULE_INIT(asrc, sys_comp_module_asrc_interface_init);
879879
#include <module/module/llext.h>
880880
#include <rimage/sof/user/manifest.h>
881881

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

886884
static const struct sof_man_module_manifest mod_manifest[] __section(".module") __used = {
887-
SOF_LLEXT_MODULE_MANIFEST("ASRC", asrc_llext_entry, 1, UUID_ASRC, 2),
885+
SOF_LLEXT_MODULE_MANIFEST("ASRC", asrc_llext_entry, 1, SOF_REG_UUID(asrc4), 2),
888886
};
889887

890888
SOF_LLEXT_BUILDINFO;

src/audio/codec/dts/dts.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,10 @@ SOF_MODULE_INIT(dts, sys_comp_module_dts_interface_init);
478478
#include <module/module/llext.h>
479479
#include <rimage/sof/user/manifest.h>
480480

481-
#define UUID_DTS 0x4F, 0xC3, 0x5F, 0xD9, 0x0F, 0x37, 0xC7, 0x4A, 0x86, 0xBC, \
482-
0xBF, 0xDC, 0x5B, 0xE2, 0x41, 0xE6
483-
484481
SOF_LLEXT_MOD_ENTRY(dts, &dts_interface);
485482

486483
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
487-
SOF_LLEXT_MODULE_MANIFEST("DTS", dts_llext_entry, 1, UUID_DTS, 40);
484+
SOF_LLEXT_MODULE_MANIFEST("DTS", dts_llext_entry, 1, SOF_REG_UUID(dts), 40);
488485

489486
SOF_LLEXT_BUILDINFO;
490487

src/audio/crossover/crossover.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,13 +639,10 @@ SOF_MODULE_INIT(crossover, sys_comp_module_crossover_interface_init);
639639
#include <module/module/llext.h>
640640
#include <rimage/sof/user/manifest.h>
641641

642-
#define UUID_CROSSOVER 0xD1, 0x9A, 0x8C, 0x94, 0x6A, 0x80, 0x31, 0x41, 0x6C, 0xAD, \
643-
0xB2, 0xBD, 0xA9, 0xE3, 0x5A, 0x9F
644-
645642
SOF_LLEXT_MOD_ENTRY(crossover, &crossover_interface);
646643

647644
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
648-
SOF_LLEXT_MODULE_MANIFEST("XOVER", crossover_llext_entry, 1, UUID_CROSSOVER, 40);
645+
SOF_LLEXT_MODULE_MANIFEST("XOVER", crossover_llext_entry, 1, SOF_REG_UUID(crossover), 40);
649646

650647
SOF_LLEXT_BUILDINFO;
651648

src/audio/dcblock/dcblock.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,10 @@ SOF_MODULE_INIT(dcblock, sys_comp_module_dcblock_interface_init);
264264
#include <module/module/llext.h>
265265
#include <rimage/sof/user/manifest.h>
266266

267-
#define UUID_DCBLOCK 0xAF, 0xEF, 0x09, 0xB8, 0x81, 0x56, 0xB1, 0x42, 0xD6, 0x9E, \
268-
0x04, 0xBB, 0x01, 0x2D, 0xD3, 0x84
269-
270267
SOF_LLEXT_MOD_ENTRY(dcblock, &dcblock_interface);
271268

272269
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
273-
SOF_LLEXT_MODULE_MANIFEST("DCBLOCK", dcblock_llext_entry, 1, UUID_DCBLOCK, 40);
270+
SOF_LLEXT_MODULE_MANIFEST("DCBLOCK", dcblock_llext_entry, 1, SOF_REG_UUID(dcblock), 40);
274271

275272
SOF_LLEXT_BUILDINFO;
276273

src/audio/drc/drc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,10 @@ SOF_MODULE_INIT(drc, sys_comp_module_drc_interface_init);
410410
#include <module/module/api_ver.h>
411411
#include <rimage/sof/user/manifest.h>
412412

413-
#define UUID_DRC 0xda, 0xe4, 0x6e, 0xb3, 0x6f, 0x00, 0xf9, 0x47, \
414-
0xa0, 0x6d, 0xfe, 0xcb, 0xe2, 0xd8, 0xb6, 0xce
415-
416413
SOF_LLEXT_MOD_ENTRY(drc, &drc_interface);
417414

418415
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
419-
SOF_LLEXT_MODULE_MANIFEST("DRC", drc_llext_entry, 1, UUID_DRC, 40);
416+
SOF_LLEXT_MODULE_MANIFEST("DRC", drc_llext_entry, 1, SOF_REG_UUID(drc), 40);
420417

421418
SOF_LLEXT_BUILDINFO;
422419

src/audio/eq_fir/eq_fir.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,10 @@ SOF_MODULE_INIT(eq_fir, sys_comp_module_eq_fir_interface_init);
488488
#include <module/module/llext.h>
489489
#include <rimage/sof/user/manifest.h>
490490

491-
#define UUID_EQFIR 0xe7, 0x0c, 0xa9, 0x43, 0xa5, 0xf3, 0xdf, 0x41, \
492-
0xac, 0x06, 0xba, 0x98, 0x65, 0x1a, 0xe6, 0xa3
493-
494491
SOF_LLEXT_MOD_ENTRY(eq_fir, &eq_fir_interface);
495492

496493
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
497-
SOF_LLEXT_MODULE_MANIFEST("EQFIR", eq_fir_llext_entry, 1, UUID_EQFIR, 40);
494+
SOF_LLEXT_MODULE_MANIFEST("EQFIR", eq_fir_llext_entry, 1, SOF_REG_UUID(eq_fir), 40);
498495

499496
SOF_LLEXT_BUILDINFO;
500497

src/audio/eq_iir/eq_iir.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,10 @@ SOF_MODULE_INIT(eq_iir, sys_comp_module_eq_iir_interface_init);
258258
#include <module/module/llext.h>
259259
#include <rimage/sof/user/manifest.h>
260260

261-
#define UUID_EQIIR 0xE6, 0xC0, 0x50, 0x51, 0xF9, 0x27, 0xC8, 0x4E, \
262-
0x83, 0x51, 0xC7, 0x05, 0xB6, 0x42, 0xD1, 0x2F
263-
264261
SOF_LLEXT_MOD_ENTRY(eq_iir, &eq_iir_interface);
265262

266263
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
267-
SOF_LLEXT_MODULE_MANIFEST("EQIIR", eq_iir_llext_entry, 1, UUID_EQIIR, 40);
264+
SOF_LLEXT_MODULE_MANIFEST("EQIIR", eq_iir_llext_entry, 1, SOF_REG_UUID(eq_iir), 40);
268265

269266
SOF_LLEXT_BUILDINFO;
270267

src/audio/google/google_ctc_audio_processing.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,14 +466,11 @@ SOF_MODULE_INIT(google_ctc_audio_processing,
466466
#include <module/module/llext.h>
467467
#include <rimage/sof/user/manifest.h>
468468

469-
#define UUID_GOOGLE_CTC 0xBC, 0x1B, 0x0E, 0xBF, 0x6A, 0xDC, 0xFE, 0x45, 0x90, 0xBC, \
470-
0x25, 0x54, 0xCB, 0x13, 0x7A, 0xB4
471-
472469
SOF_LLEXT_MOD_ENTRY(google_ctc_audio_processing, &google_ctc_audio_processing_interface);
473470

474471
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
475472
SOF_LLEXT_MODULE_MANIFEST("CTC", google_ctc_audio_processing_llext_entry,
476-
1, UUID_GOOGLE_CTC, 40);
473+
1, SOF_REG_UUID(google_ctc_audio_processing), 40);
477474

478475
SOF_LLEXT_BUILDINFO;
479476

src/audio/google/google_rtc_audio_processing.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -861,14 +861,11 @@ SOF_MODULE_INIT(google_rtc_audio_processing,
861861
#include <module/module/llext.h>
862862
#include <rimage/sof/user/manifest.h>
863863

864-
#define UUID_GOOGLE_RTC_AEC 0xA6, 0xA0, 0x80, 0xB7, 0x9F, 0x26, 0x6F, 0x46, 0x77, 0xB4, \
865-
0x23, 0xDF, 0xA0, 0x5A, 0xF7, 0x58
866-
867864
SOF_LLEXT_MOD_ENTRY(google_rtc_audio_processing, &google_rtc_audio_processing_interface);
868865

869866
static const struct sof_man_module_manifest mod_manifest __section(".module") __used =
870867
SOF_LLEXT_MODULE_MANIFEST("RTC_AEC", google_rtc_audio_processing_llext_entry,
871-
7, UUID_GOOGLE_RTC_AEC, 1);
868+
7, SOF_REG_UUID(google_rtc_audio_processing), 1);
872869

873870
SOF_LLEXT_BUILDINFO;
874871

0 commit comments

Comments
 (0)