[Sound-open-firmware] [PATCH 3/3] comp: src: use buffer allocator when allocating delay lines.

Liam Girdwood liam.r.girdwood at linux.intel.com
Sun Sep 3 23:17:52 CEST 2017


delay lines are typically several kB in size so use buffer allocator.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 src/audio/src.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio/src.c b/src/audio/src.c
index 0344bed..c11ef3f 100644
--- a/src/audio/src.c
+++ b/src/audio/src.c
@@ -357,7 +357,7 @@ static int src_params(struct comp_dev *dev)
 	if (cd->delay_lines != NULL)
 		rfree(cd->delay_lines);
 
-	cd->delay_lines = rzalloc(RZONE_RUNTIME, RFLAGS_NONE, delay_lines_size);
+	cd->delay_lines = rballoc(RZONE_RUNTIME, RFLAGS_NONE, delay_lines_size);
 	if (cd->delay_lines == NULL) {
 		trace_src_error("sr3");
 		trace_value(delay_lines_size);
-- 
2.11.0



More information about the Sound-open-firmware mailing list