Skip to content

Commit

Permalink
Merge branch 'main' into mt8365
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Perepech <[email protected]>
  • Loading branch information
andrew-mtk authored Feb 27, 2025
2 parents a91a6fe + 194435d commit f5f3126
Show file tree
Hide file tree
Showing 42 changed files with 72 additions and 81 deletions.
13 changes: 13 additions & 0 deletions scripts/cmake/llext_write_uuids.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: BSD-3-Clause

# Used by LLEXT modules to create a file with module UUIDs
file(STRINGS ${ZEPHYR_BINARY_DIR}/${MODULE}_llext/rimage_config.toml uuids REGEX "^[ \t]*uuid *=")

set(UUIDS_LIST_FILE ${ZEPHYR_BINARY_DIR}/${MODULE}_llext/llext.uuid)
file(REMOVE ${UUIDS_LIST_FILE})
foreach(line IN LISTS uuids)
# extract UUID value - drop the 'uuid = ' part of the assignment line
string(REGEX REPLACE "^[ \t]*uuid *= \"([0-9A-Fa-f\\-]*)\"" "\\1" uuid ${line})
string(TOUPPER ${uuid} uuid)
file(APPEND ${UUIDS_LIST_FILE} "${uuid}\n")
endforeach()
2 changes: 1 addition & 1 deletion src/audio/aria/aria.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # Aria module config
[[module.entry]]
name = "ARIA"
uuid = "99F7166D-372C-43EF-81F6-22007AA15F03"
uuid = UUIDREG_STR_ARIA
affinity_mask = "0x1"
instance_count = "8"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/asrc/asrc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "ASRC"
uuid = "66B4402D-B468-42F2-81A7-B37121863DD4"
uuid = UUIDREG_STR_ASRC4
affinity_mask = "0x3"
instance_count = "2"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/codec/dts/dts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # dts codec module config
[[module.entry]]
name = "DTS"
uuid = "D95FC34F-370F-4AC7-BC86-BFDC5BE241E6"
uuid = UUIDREG_STR_DTS
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/copier.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[module.entry]]
name = "COPIER"
uuid = "9BA00C83-CA12-4A83-943C-1FA2E82F9DDA"
uuid = UUIDREG_STR_COPIER
affinity_mask = "0x1"
instance_count = "32"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/crossover/crossover.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
REM # be appended to the IPC payload. The Extension is needed to know the output pin indices.
[[module.entry]]
name = "XOVER"
uuid = "948C9AD1-806A-4131-AD6C-B2BDA9E35A9F"
uuid = UUIDREG_STR_CROSSOVER
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/dcblock/dcblock.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # DCblock module config
[[module.entry]]
name = "DCBLOCK"
uuid = "B809EFAF-5681-42B1-9ED6-04BB012DD384"
uuid = UUIDREG_STR_DCBLOCK
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/drc/drc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # DRC module config
[[module.entry]]
name = "DRC"
uuid = "B36EE4DA-006F-47F9-A06D-FECBE2D8B6CE"
uuid = UUIDREG_STR_DRC
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/eq_fir/eq_fir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # eq fir module config
[[module.entry]]
name = "EQFIR"
uuid = "43A90CE7-F3A5-41DF-AC06-BA98651AE6A3"
uuid = UUIDREG_STR_EQ_FIR
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/eq_iir/eq_iir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # eq iir module config
[[module.entry]]
name = "EQIIR"
uuid = "5150C0E6-27F9-4EC8-8351-C705B642D12F"
uuid = UUIDREG_STR_EQ_IIR
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/google/google_ctc_audio_processing.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # CTC module config
[[module.entry]]
name = "CTC"
uuid = "BF0E1BBC-DC6A-45FE-BC90-2554CB137AB4"
uuid = UUIDREG_STR_GOOGLE_CTC_AUDIO_PROCESSING
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/google/google_rtc_audio_processing.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "RTC_AEC"
uuid = "B780A0A6-269F-466F-B477-23DFA05AF758"
uuid = UUIDREG_STR_GOOGLE_RTC_AUDIO_PROCESSING
REM # bit #i = 1 means core #i is allowed.
affinity_mask = "0x7"
instance_count = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/igo_nr/igo_nr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # IGO_NR module config
[[module.entry]]
name = "IGO_NR"
uuid = "696AE2BC-2877-11EB-ADC1-0242AC120002"
uuid = UUIDREG_STR_IGO_NR
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/kpb.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[module.entry]]
name = "KPB"
uuid = "A8A0CB32-4A77-4DB1-85C7-53D7EE07BCE6"
uuid = UUIDREG_STR_KPB4
affinity_mask = "0x1"
instance_count = "1"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/mfcc/mfcc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # MFCC module config
[[module.entry]]
name = "MFCC"
uuid = "DB10A773-1AA4-4CEA-A21F-2D57A5C982EB"
uuid = UUIDREG_STR_MFCC
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
4 changes: 2 additions & 2 deletions src/audio/mixin_mixout/mixin_mixout.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "MIXIN"
uuid = "39656EB2-3B71-4049-8D3F-F92CD5C43C09"
uuid = UUIDREG_STR_MIXIN
affinity_mask = "0x1"
instance_count = "30"
domain_types = "0"
Expand Down Expand Up @@ -43,7 +43,7 @@

[[module.entry]]
name = "MIXOUT"
uuid = "3C56505A-24D7-418F-BDDC-C1F5A3AC2AE0"
uuid = UUIDREG_STR_MIXOUT
affinity_mask = "0x1"
instance_count = "30"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/module_adapter/module/cadence.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
REM # Cadence module config
[[module.entry]]
name = "CADENCE"
uuid = "D8218443-5FF3-4A4C-B388-6CFE07B956AA"
uuid = UUIDREG_STR_CADENCE_CODEC
affinity_mask = "0x3"
instance_count = "1"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/module_adapter/module/waves/waves.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # waves module config
[[module.entry]]
name = "WAVES"
uuid = "D944281A-AFE9-4695-A043-D7F62B89538E"
uuid = UUIDREG_STR_WAVES
affinity_mask = "0x1"
instance_count = "4"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/multiband_drc/multiband_drc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # Multiband-DRC module config
[[module.entry]]
name = "MB_DRC"
uuid = "0D9F2256-8E4F-47B3-8448-239A334F1191"
uuid = UUIDREG_STR_MULTIBAND_DRC
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/mux/mux.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "MUX"
uuid = "64CE6E35-857A-4878-ACE8-E2A2F42E3069"
uuid = UUIDREG_STR_MUX4
affinity_mask = "0x1"
instance_count = "15"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/rtnr/rtnr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # RTNR module config
[[module.entry]]
name = "RTNR"
uuid = "5C7CA334-E15D-11EB-BA80-0242AC130004"
uuid = UUIDREG_STR_RTNR
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/selector/selector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "MICSEL"
uuid = "32FE92C1-1E17-4FC2-9758-C7F3542E980A"
uuid = UUIDREG_STR_SELECTOR4
affinity_mask = "0x1"
instance_count = "8"
domain_types = "0"
Expand Down
4 changes: 2 additions & 2 deletions src/audio/src/src.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "SRC"
uuid = "E61BB28D-149A-4C1F-B709-46823EF5F5AE"
uuid = UUIDREG_STR_SRC4
affinity_mask = "0x1"
REM #instance_count = "10"
domain_types = "0"
Expand Down Expand Up @@ -77,7 +77,7 @@
REM # SRC lite module config
[[module.entry]]
name = "SRC_LITE"
uuid = "33441051-44CD-466A-83A3-178478708AEA"
uuid = UUIDREG_STR_SRC_LITE
affinity_mask = "0x1"
REM #instance_count = "10"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/tdfb/tdfb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # TDFB module config
[[module.entry]]
name = "TDFB"
uuid = "DD511749-D9FA-455C-B3A7-13585693F1AF"
uuid = UUIDREG_STR_TDFB
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/audio/up_down_mixer/up_down_mixer.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[module.entry]]
name = "UPDWMIX"
uuid = "42F8060C-832F-4DBF-B247-51E961997B34"
uuid = UUIDREG_STR_UP_DOWN_MIXER
affinity_mask = "0x1"
instance_count = "15"
domain_types = "0"
Expand Down
4 changes: 2 additions & 2 deletions src/audio/volume/volume.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#if CONFIG_COMP_PEAK_VOL
[[module.entry]]
name = "PEAKVOL"
uuid = "8A171323-94A3-4E1D-AFE9-FE5DBAA4C393"
uuid = UUIDREG_STR_VOLUME4
affinity_mask = "0x1"
instance_count = "10"
domain_types = "0"
Expand Down Expand Up @@ -41,7 +41,7 @@
#if CONFIG_COMP_GAIN
[[module.entry]]
name = "GAIN"
uuid = "61BCA9A8-18D0-4A18-8E7B-2639219804B7"
uuid = UUIDREG_STR_GAIN
affinity_mask = "0x1"
instance_count = "40"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/debug/tester/tester.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "TESTER"
uuid = "08AEB4FF-7F68-4C71-86C3-C842B4262898"
uuid = UUIDREG_STR_TESTER
affinity_mask = "0x1"
REM #instance_count = "10"
domain_types = "0"
Expand Down
3 changes: 1 addition & 2 deletions src/ipc/ipc4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,7 @@ int ipc_comp_disconnect(struct ipc *ipc, ipc_pipe_comp_connect *_connect)
#if CONFIG_COMP_CHAIN_DMA
int ipc4_chain_manager_create(struct ipc4_chain_dma *cdma)
{
const struct sof_uuid uuid = {0x6a0a274f, 0x27cc, 0x4afb, {0xa3, 0xe7, 0x34,
0x44, 0x72, 0x3f, 0x43, 0x2e}};
const struct sof_uuid uuid = SOF_REG_UUID(chain_dma);
const struct comp_driver *drv;
struct comp_dev *dev;

Expand Down
2 changes: 1 addition & 1 deletion src/math/fir.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[module.entry]]
name = "FIR"
uuid = "93446E12-1864-4E04-AFE0-3B1D778FFB79"
uuid = UUIDREG_STR_FIR
load_type = "3"

index = __COUNTER__
2 changes: 1 addition & 1 deletion src/probe/probe.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[module.entry]]
name = "PROBE"
uuid = "7CAD0808-AB10-CD23-EF45-12AB34CD56EF"
uuid = UUIDREG_STR_PROBE4
affinity_mask = "0x1"
instance_count = "1"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/samples/audio/detect_test.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[module.entry]]
name = "KDTEST"
uuid = "EBA8D51F-7827-47B5-82EE-DE6E7743AF67"
uuid = UUIDREG_STR_KEYWORD
affinity_mask = "0x1"
instance_count = "1"
domain_types = "0"
Expand Down
2 changes: 1 addition & 1 deletion src/samples/audio/smart_amp_test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
REM # smart amp test module config
[[module.entry]]
name = "SMATEST"
uuid = "167A961E-8AE4-11EA-89F1-000C29CE1635"
uuid = UUIDREG_STR_SMART_AMP_TEST
affinity_mask = "0x1"
instance_count = "1"
domain_types = "0"
Expand Down
5 changes: 1 addition & 4 deletions test/cmocka/src/audio/eq_fir/eq_fir_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ static struct sof_ipc_comp_process *create_eq_fir_comp_ipc(struct test_data *td)
struct sof_eq_fir_config *eq;
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
struct sof_abi_hdr *blob = (struct sof_abi_hdr *)fir_coef_2ch;
const struct sof_uuid uuid = {
.a = 0x43a90ce7, .b = 0xf3a5, .c = 0x41df,
.d = {0xac, 0x06, 0xba, 0x98, 0x65, 0x1a, 0xe6, 0xa3}
};
const struct sof_uuid uuid = SOF_REG_UUID(eq_fir);

ipc = calloc(1, ipc_size + blob->size + SOF_UUID_SIZE);
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);
Expand Down
5 changes: 1 addition & 4 deletions test/cmocka/src/audio/eq_iir/eq_iir_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ static struct sof_ipc_comp_process *create_eq_iir_comp_ipc(struct test_data *td)
struct sof_eq_iir_config *eq;
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
struct sof_abi_hdr *blob = (struct sof_abi_hdr *)iir_coef_2ch;
const struct sof_uuid uuid = {
.a = 0x5150c0e6, .b = 0x27f9, .c = 0x4ec8,
.d = {0x83, 0x51, 0xc7, 0x05, 0xb6, 0x42, 0xd1, 0x2f}
};
const struct sof_uuid uuid = SOF_REG_UUID(eq_iir);

ipc = calloc(1, ipc_size + blob->size + SOF_UUID_SIZE);
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);
Expand Down
5 changes: 1 addition & 4 deletions test/cmocka/src/audio/mux/demux_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ static struct sof_ipc_comp_process *create_demux_comp_ipc(struct test_data *td)
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
size_t mux_size = sizeof(struct sof_mux_config) +
MUX_MAX_STREAMS * sizeof(struct mux_stream_data);
const struct sof_uuid uuid = {
.a = 0xc4b26868, .b = 0x1430, .c = 0x470e,
.d = {0xa0, 0x89, 0x15, 0xd1, 0xc7, 0x7f, 0x85, 0x1a}
};
const struct sof_uuid uuid = SOF_REG_UUID(demux);
int i, j;

ipc = calloc(1, ipc_size + mux_size + SOF_UUID_SIZE);
Expand Down
5 changes: 1 addition & 4 deletions test/cmocka/src/audio/mux/mux_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ static struct sof_ipc_comp_process *create_mux_comp_ipc(struct test_data *td)
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
size_t mux_size = sizeof(struct sof_mux_config) +
MUX_MAX_STREAMS * sizeof(struct mux_stream_data);
const struct sof_uuid uuid = {
.a = 0xc607ff4d, .b = 0x9cb6, .c = 0x49dc,
.d = {0xb6, 0x78, 0x7d, 0xa3, 0xc6, 0x3e, 0xa5, 0x57}
};
const struct sof_uuid uuid = SOF_REG_UUID(mux);
int i, j;

ipc = calloc(1, ipc_size + mux_size + SOF_UUID_SIZE);
Expand Down
5 changes: 1 addition & 4 deletions test/cmocka/src/audio/mux/mux_get_processing_function.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ static struct sof_ipc_comp_process *create_mux_comp_ipc(struct test_data *td)
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
size_t mux_size = sizeof(struct sof_mux_config) +
MUX_MAX_STREAMS * sizeof(struct mux_stream_data);
const struct sof_uuid uuid = {
.a = 0xc607ff4d, .b = 0x9cb6, .c = 0x49dc,
.d = {0xb6, 0x78, 0x7d, 0xa3, 0xc6, 0x3e, 0xa5, 0x57}
};
const struct sof_uuid uuid = SOF_REG_UUID(mux);
int i, j;

ipc = calloc(1, ipc_size + mux_size + SOF_UUID_SIZE);
Expand Down
Loading

0 comments on commit f5f3126

Please sign in to comment.