Skip to content

Commit

Permalink
Test: Cmocka: Set component type to SOF_COMP_MODULE_ADAPTER
Browse files Browse the repository at this point in the history
The change done in commit b53573a
("ipc3: override type field once comp_driver found") expects
the component type via init IPC to be the same as module
register sets (SOF_COMP_MODULE_ADAPTER).

Signed-off-by: Seppo Ingalsuo <[email protected]>
  • Loading branch information
singalsu authored and lgirdwood committed Oct 1, 2024
1 parent 31e22e6 commit 64bd786
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/cmocka/src/audio/eq_fir/eq_fir_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static struct sof_ipc_comp_process *create_eq_fir_comp_ipc(struct test_data *td)
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);
eq = (struct sof_eq_fir_config *)((char *)(ipc + 1) + SOF_UUID_SIZE);
ipc->comp.hdr.size = ipc_size + SOF_UUID_SIZE;
ipc->comp.type = SOF_COMP_EQ_FIR;
ipc->comp.type = SOF_COMP_MODULE_ADAPTER;
ipc->config.hdr.size = sizeof(struct sof_ipc_comp_config);
ipc->size = blob->size;
ipc->comp.ext_data_length = SOF_UUID_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion test/cmocka/src/audio/eq_iir/eq_iir_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static struct sof_ipc_comp_process *create_eq_iir_comp_ipc(struct test_data *td)
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);
eq = (struct sof_eq_iir_config *)((char *)(ipc + 1) + SOF_UUID_SIZE);
ipc->comp.hdr.size = ipc_size + SOF_UUID_SIZE;
ipc->comp.type = SOF_COMP_EQ_IIR;
ipc->comp.type = SOF_COMP_MODULE_ADAPTER;
ipc->config.hdr.size = sizeof(struct sof_ipc_comp_config);
ipc->size = blob->size;
ipc->comp.ext_data_length = SOF_UUID_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion test/cmocka/src/audio/mux/demux_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static struct sof_ipc_comp_process *create_demux_comp_ipc(struct test_data *td)
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);
mux = (struct sof_mux_config *)((char *)(ipc + 1) + SOF_UUID_SIZE);
ipc->comp.hdr.size = ipc_size + SOF_UUID_SIZE;
ipc->comp.type = SOF_COMP_DEMUX;
ipc->comp.type = SOF_COMP_MODULE_ADAPTER;
ipc->config.hdr.size = sizeof(struct sof_ipc_comp_config);
ipc->size = mux_size;
ipc->comp.ext_data_length = SOF_UUID_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion test/cmocka/src/audio/mux/mux_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static struct sof_ipc_comp_process *create_mux_comp_ipc(struct test_data *td)
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);
mux = (struct sof_mux_config *)((char *)(ipc + 1) + SOF_UUID_SIZE);
ipc->comp.hdr.size = ipc_size + SOF_UUID_SIZE;
ipc->comp.type = SOF_COMP_MUX;
ipc->comp.type = SOF_COMP_MODULE_ADAPTER;
ipc->config.hdr.size = sizeof(struct sof_ipc_comp_config);
ipc->size = mux_size;
ipc->comp.ext_data_length = SOF_UUID_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion test/cmocka/src/audio/mux/mux_get_processing_function.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static struct sof_ipc_comp_process *create_mux_comp_ipc(struct test_data *td)
memcpy_s(ipc + 1, SOF_UUID_SIZE, &uuid, SOF_UUID_SIZE);
mux = (struct sof_mux_config *)((char *)(ipc + 1) + SOF_UUID_SIZE);
ipc->comp.hdr.size = ipc_size + SOF_UUID_SIZE;
ipc->comp.type = SOF_COMP_MUX;
ipc->comp.type = SOF_COMP_MODULE_ADAPTER;
ipc->config.hdr.size = sizeof(struct sof_ipc_comp_config);
ipc->size = mux_size;
ipc->comp.ext_data_length = SOF_UUID_SIZE;
Expand Down

0 comments on commit 64bd786

Please sign in to comment.