From 844526abdf4428932b6f0ca260b5e164b05a2899 Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Wed, 16 Oct 2019 11:38:24 +0200 Subject: [PATCH] ipc: return an error on dai not found Returns an error, when there is no DAI component connected to the DAI index specified by DAI config IPC. Signed-off-by: Tomasz Lauda --- src/ipc/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/ipc.c b/src/ipc/ipc.c index 908011daa..1c8bd6ad0 100644 --- a/src/ipc/ipc.c +++ b/src/ipc/ipc.c @@ -397,7 +397,7 @@ int ipc_comp_dai_config(struct ipc *ipc, struct sof_ipc_dai_config *config) struct ipc_comp_dev *icd; struct list_item *clist; struct comp_dev *dev; - int ret = 0; + int ret = -ENODEV; /* for each component */ list_for_item(clist, &ipc->shared_ctx->comp_list) {