Skip to content

Commit b759c46

Browse files
singalsulgirdwood
authored andcommitted
Audio: SRC: Fix return code for failed delay lines allocate
The proper return code is -ENOMEM. The -EINVAL makes this look like at higher logs level a component internal failure that it isn't. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent fc75d8e commit b759c46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/audio/src/src_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ int src_params_general(struct processing_module *mod,
537537
if (!cd->delay_lines) {
538538
comp_err(dev, "failed to alloc cd->delay_lines, delay_lines_size = %zu",
539539
delay_lines_size);
540-
return -EINVAL;
540+
return -ENOMEM;
541541
}
542542

543543
/* Clear all delay lines here */

0 commit comments

Comments
 (0)