Skip to content

Commit

Permalink
ipc3: helper: Fix mixer scenario
Browse files Browse the repository at this point in the history
With mixer after commit 21ed10a ("ipc3: helper: Do not silently
accept unrecognized component type in IPC") we get the following error

dma-trace  src/ipc/ipc3/helper.c:333  ERROR comp_new(): component type not recognized

This happens because now we return an error from comp_specific_builder() with the default
case.

Fix this by adding a case for mixer.

Fixes: 21ed10a ("ipc3: helper: Do not silently accept unrecognized component type in IPC")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
  • Loading branch information
dbaluta authored and ranj063 committed Jul 18, 2023
1 parent 803f613 commit 95874fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ipc/ipc3/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ static int comp_specific_builder(struct sof_ipc_comp *comp,
config->process.data = proc->data;
#endif
break;
case SOF_COMP_MIXER:
break;
default:
return -EINVAL;
}
Expand Down

0 comments on commit 95874fd

Please sign in to comment.