mirror of https://github.com/thesofproject/sof.git
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:
parent
82bddf6cb8
commit
299ae71771
|
@ -333,7 +333,7 @@ int codec_reset(struct comp_dev *dev)
|
||||||
return 0;
|
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 comp_data *cd = comp_get_drvdata(dev);
|
||||||
struct codec_memory *mem;
|
struct codec_memory *mem;
|
||||||
|
|
|
@ -198,6 +198,7 @@ int codec_init(struct comp_dev *dev);
|
||||||
void *codec_allocate_memory(struct comp_dev *dev, uint32_t size,
|
void *codec_allocate_memory(struct comp_dev *dev, uint32_t size,
|
||||||
uint32_t alignment);
|
uint32_t alignment);
|
||||||
int codec_free_memory(struct comp_dev *dev, void *ptr);
|
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_prepare(struct comp_dev *dev);
|
||||||
int codec_process(struct comp_dev *dev);
|
int codec_process(struct comp_dev *dev);
|
||||||
int codec_apply_runtime_config(struct comp_dev *dev);
|
int codec_apply_runtime_config(struct comp_dev *dev);
|
||||||
|
|
Loading…
Reference in New Issue