codec_adapter: make free_all_memory() interface available for codecs

This patch makes codec_free_all_memory() available for codecs so they
can free all memory allocated by themself.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
Marcin Rajwa 2020-11-27 13:46:47 +01:00 committed by Liam Girdwood
parent 82bddf6cb8
commit 299ae71771
2 changed files with 2 additions and 1 deletions

View File

@ -333,7 +333,7 @@ int codec_reset(struct comp_dev *dev)
return 0;
}
static void codec_free_all_memory(struct comp_dev *dev)
void codec_free_all_memory(struct comp_dev *dev)
{
struct comp_data *cd = comp_get_drvdata(dev);
struct codec_memory *mem;

View File

@ -198,6 +198,7 @@ int codec_init(struct comp_dev *dev);
void *codec_allocate_memory(struct comp_dev *dev, uint32_t size,
uint32_t alignment);
int codec_free_memory(struct comp_dev *dev, void *ptr);
void codec_free_all_memory(struct comp_dev *dev);
int codec_prepare(struct comp_dev *dev);
int codec_process(struct comp_dev *dev);
int codec_apply_runtime_config(struct comp_dev *dev);