From d53f9ce8aa3b4bbc820586529b7ea8413f25bebf Mon Sep 17 00:00:00 2001 From: "Kwasowiec, Fabiola" Date: Fri, 16 Dec 2022 14:56:06 +0100 Subject: [PATCH] selector: remove return error when input buffer is 0 A pipeline that contains a selector cannot be run before the pipeline that is connected to the selector because an error is returned. The order of the run pipelines should not matter for functionality. Signed-off-by: Kwasowiec, Fabiola --- src/audio/selector/selector.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/audio/selector/selector.c b/src/audio/selector/selector.c index 3c77f85d9090..da8885ab6093 100644 --- a/src/audio/selector/selector.c +++ b/src/audio/selector/selector.c @@ -827,11 +827,9 @@ static int selector_process(struct processing_module *mod, comp_dbg(mod->dev, "selector_process()"); - if (!avail_frames) - return PPL_STATUS_PATH_STOP; - - /* copy selected channels from in to out */ - cd->sel_func(mod, input_buffers, output_buffers, avail_frames); + if (avail_frames) + /* copy selected channels from in to out */ + cd->sel_func(mod, input_buffers, output_buffers, avail_frames); return 0; }