Audio: SRC: Allow SRC to not process in copy()

The zero consumed and produced is not an error for SRC
it can happen with some low sample rates those have
a larger internal block size than source or sink period.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2022-04-01 21:17:38 +03:00 committed by Liam Girdwood
parent 914c415eed
commit 8024351dae
1 changed files with 2 additions and 4 deletions

View File

@ -894,13 +894,11 @@ static int src_copy(struct comp_dev *dev)
buffer_release(source);
if (ret) {
comp_info(dev, "No data to process.");
return PPL_STATUS_PATH_STOP;
comp_dbg(dev, "No data to process.");
return 0;
}
src_process(dev, source, sink);
/* produced no data */
return 0;
}