Skip to content

Commit a42ee0d

Browse files
lyakhlgirdwood
authored andcommitted
Revert "Audio: SRC: Replace mod_alloc with mod_balloc in rballoc usage"
This reverts commit 49f7b79. Commit 9fcc269 ("Audio: SRC: All memory allocations through module") to which it's referring wasn't wrong, the delay_lines buffer in SRC must also be allocated on the module heap to be accessible in the DP userspace mode. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 7805ff2 commit a42ee0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio/src/src_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ int src_params_general(struct processing_module *mod,
533533
/* free any existing delay lines. TODO reuse if same size */
534534
mod_free(mod, cd->delay_lines);
535535

536-
cd->delay_lines = mod_balloc(mod, delay_lines_size);
536+
cd->delay_lines = mod_alloc(mod, delay_lines_size);
537537
if (!cd->delay_lines) {
538538
comp_err(dev, "failed to alloc cd->delay_lines, delay_lines_size = %zu",
539539
delay_lines_size);

0 commit comments

Comments
 (0)