Skip to content

Commit 597e16f

Browse files
Jyri Sarhakv2019i
authored andcommitted
Audio: SRC: Take mod_fast_get() and mod_fast_put() into use
Take mod_fast_get() and mod_fast_put() into use. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 6cd9b6c commit 597e16f

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/audio/src/src_common.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,11 @@ int src_allocate_copy_stages(struct processing_module *mod, struct src_param *pr
627627
return -EINVAL;
628628
}
629629

630-
stage_dst[0].coefs = fast_get(stage_src1->coefs, coef_size[0]);
631-
stage_dst[1].coefs = fast_get(stage_src2->coefs, coef_size[1]);
630+
stage_dst[0].coefs = mod_fast_get(mod, stage_src1->coefs, coef_size[0]);
631+
stage_dst[1].coefs = mod_fast_get(mod, stage_src2->coefs, coef_size[1]);
632632

633633
if (!stage_dst[0].coefs || !stage_dst[1].coefs) {
634634
comp_err(mod->dev, "failed to allocate coefficients");
635-
fast_put(stage_dst[0].coefs);
636635
return -ENOMEM;
637636
}
638637

@@ -708,12 +707,5 @@ __cold int src_free(struct processing_module *mod)
708707

709708
comp_info(mod->dev, "src_free()");
710709

711-
#if CONFIG_FAST_GET
712-
struct comp_data *cd = module_get_private_data(mod);
713-
if (cd->param.stage1) {
714-
fast_put(cd->param.stage1->coefs);
715-
fast_put(cd->param.stage2->coefs);
716-
}
717-
#endif
718710
return 0;
719711
}

0 commit comments

Comments
 (0)