From 2d3fb2ca4c97098d0301f2924f540e56d1379fca Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Tue, 18 Jul 2023 14:02:26 +0300 Subject: [PATCH] ipc3: helper: Fix mixer scenario With mixer after commit 21ed10abf8a2 ("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: 21ed10abf8a2 ("ipc3: helper: Do not silently accept unrecognized component type in IPC") Signed-off-by: Daniel Baluta --- src/ipc/ipc3/helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ipc/ipc3/helper.c b/src/ipc/ipc3/helper.c index b83d8fb16be0..96124538d8ed 100644 --- a/src/ipc/ipc3/helper.c +++ b/src/ipc/ipc3/helper.c @@ -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; }