From ac04a830a82c7e3d9395b151ec1cf12324c16460 Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Mon, 16 Sep 2019 15:50:32 +0300 Subject: [PATCH] src: do not treat 0 size input data as error Currently SRC returns error when 0 size input or output data is detected and pipeline interpretes this as fatal xrun error. This could happen for example when host dma has no time to fill in first iteration of samples. So instead of error, return PPL_STATUS_PATH_STOP as SRC in the middle of the pipeline should handle also occasional 0 size data. Signed-off-by: Jaska Uimonen --- src/audio/src/src.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/src/src.c b/src/audio/src/src.c index 25bd535fd75b..11890dcbe59f 100644 --- a/src/audio/src/src.c +++ b/src/audio/src/src.c @@ -762,8 +762,8 @@ static int src_copy(struct comp_dev *dev) */ ret = src_get_copy_limits(cd, source, sink); if (ret) { - trace_src_error("No data to process."); - return ret; + trace_src("No data to process."); + return PPL_STATUS_PATH_STOP; } cd->src_func(dev, source, sink, &consumed, &produced);