Skip to content

Commit 194435d

Browse files
softwareckilgirdwood
authored andcommitted
test: cmocka: eq_fir: eq_iir: mux: Get uuid freom registry
Change the identifiers defined in the code to the one retrieved from the uuid-registry. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
1 parent 3fa7046 commit 194435d

5 files changed

Lines changed: 5 additions & 20 deletions

File tree

test/cmocka/src/audio/eq_fir/eq_fir_process.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ static struct sof_ipc_comp_process *create_eq_fir_comp_ipc(struct test_data *td)
7272
struct sof_eq_fir_config *eq;
7373
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
7474
struct sof_abi_hdr *blob = (struct sof_abi_hdr *)fir_coef_2ch;
75-
const struct sof_uuid uuid = {
76-
.a = 0x43a90ce7, .b = 0xf3a5, .c = 0x41df,
77-
.d = {0xac, 0x06, 0xba, 0x98, 0x65, 0x1a, 0xe6, 0xa3}
78-
};
75+
const struct sof_uuid uuid = SOF_REG_UUID(eq_fir);
7976

8077
ipc = calloc(1, ipc_size + blob->size + SOF_UUID_SIZE);
8178
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);

test/cmocka/src/audio/eq_iir/eq_iir_process.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ static struct sof_ipc_comp_process *create_eq_iir_comp_ipc(struct test_data *td)
7171
struct sof_eq_iir_config *eq;
7272
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
7373
struct sof_abi_hdr *blob = (struct sof_abi_hdr *)iir_coef_2ch;
74-
const struct sof_uuid uuid = {
75-
.a = 0x5150c0e6, .b = 0x27f9, .c = 0x4ec8,
76-
.d = {0x83, 0x51, 0xc7, 0x05, 0xb6, 0x42, 0xd1, 0x2f}
77-
};
74+
const struct sof_uuid uuid = SOF_REG_UUID(eq_iir);
7875

7976
ipc = calloc(1, ipc_size + blob->size + SOF_UUID_SIZE);
8077
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);

test/cmocka/src/audio/mux/demux_copy.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ static struct sof_ipc_comp_process *create_demux_comp_ipc(struct test_data *td)
9696
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
9797
size_t mux_size = sizeof(struct sof_mux_config) +
9898
MUX_MAX_STREAMS * sizeof(struct mux_stream_data);
99-
const struct sof_uuid uuid = {
100-
.a = 0xc4b26868, .b = 0x1430, .c = 0x470e,
101-
.d = {0xa0, 0x89, 0x15, 0xd1, 0xc7, 0x7f, 0x85, 0x1a}
102-
};
99+
const struct sof_uuid uuid = SOF_REG_UUID(demux);
103100
int i, j;
104101

105102
ipc = calloc(1, ipc_size + mux_size + SOF_UUID_SIZE);

test/cmocka/src/audio/mux/mux_copy.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ static struct sof_ipc_comp_process *create_mux_comp_ipc(struct test_data *td)
114114
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
115115
size_t mux_size = sizeof(struct sof_mux_config) +
116116
MUX_MAX_STREAMS * sizeof(struct mux_stream_data);
117-
const struct sof_uuid uuid = {
118-
.a = 0xc607ff4d, .b = 0x9cb6, .c = 0x49dc,
119-
.d = {0xb6, 0x78, 0x7d, 0xa3, 0xc6, 0x3e, 0xa5, 0x57}
120-
};
117+
const struct sof_uuid uuid = SOF_REG_UUID(mux);
121118
int i, j;
122119

123120
ipc = calloc(1, ipc_size + mux_size + SOF_UUID_SIZE);

test/cmocka/src/audio/mux/mux_get_processing_function.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ static struct sof_ipc_comp_process *create_mux_comp_ipc(struct test_data *td)
4040
size_t ipc_size = sizeof(struct sof_ipc_comp_process);
4141
size_t mux_size = sizeof(struct sof_mux_config) +
4242
MUX_MAX_STREAMS * sizeof(struct mux_stream_data);
43-
const struct sof_uuid uuid = {
44-
.a = 0xc607ff4d, .b = 0x9cb6, .c = 0x49dc,
45-
.d = {0xb6, 0x78, 0x7d, 0xa3, 0xc6, 0x3e, 0xa5, 0x57}
46-
};
43+
const struct sof_uuid uuid = SOF_REG_UUID(mux);
4744
int i, j;
4845

4946
ipc = calloc(1, ipc_size + mux_size + SOF_UUID_SIZE);

0 commit comments

Comments
 (0)