Skip to content

Commit 39bcc05

Browse files
author
Jyri Sarha
committed
Math: DCT: Add mod_dct_free_16()
Add mod_dct_free_16() to free memory allocated by mod_dct_initialize_16(). Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 698909a commit 39bcc05

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/include/sof/math/dct.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ struct dct_plan_16 {
3131

3232
int mod_dct_initialize_16(struct processing_module *mod, struct dct_plan_16 *dct);
3333

34+
int mod_dct_free_16(struct processing_module *mod, struct dct_plan_16 *dct);
35+
3436
#endif /* __SOF_MATH_DCT_H__ */

src/math/dct.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ int mod_dct_initialize_16(struct processing_module *mod, struct dct_plan_16 *dct
7878

7979
return 0;
8080
}
81+
82+
int mod_dct_free_16(struct processing_module *mod, struct dct_plan_16 *dct)
83+
{
84+
return mod_free(mod, dct->matrix);
85+
}

0 commit comments

Comments
 (0)