Skip to content

Commit 46e49cc

Browse files
singalsulgirdwood
authored andcommitted
Tools: Testbench: Fix mistake in topology component load by UUID
The if test needs to be done for comp_type. The index does not refer to comp types but items in lib_table that is not correct. As result testbench loads crossover for all UUID based components. The load of beamformer works correctly with this change. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 1ad7503 commit 46e49cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testbench/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void register_comp(int comp_type, struct sof_ipc_comp_ext *comp_ext)
6464

6565
/* get index of comp in shared library table */
6666
index = get_index_by_type(comp_type, lib_table);
67-
if (index == SOF_COMP_NONE && comp_ext) {
67+
if (comp_type == SOF_COMP_NONE && comp_ext) {
6868
index = get_index_by_uuid(comp_ext, lib_table);
6969
if (index < 0)
7070
return;

0 commit comments

Comments
 (0)