module_interface: Add the set/get_processing_mode API's

These will be used to set/get the processing mode for the modules.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2022-01-11 17:38:58 -08:00 committed by Liam Girdwood
parent a992ce7f4c
commit 499b4f554c
1 changed files with 11 additions and 0 deletions

View File

@ -148,6 +148,17 @@ struct module_interface {
uint32_t config_id, uint32_t data_offset_size,
const uint8_t *fragment, size_t fragment_size);
/**
* Set processing mode for the module
*/
int (*set_processing_mode)(struct processing_module *mod,
enum module_processing_mode mode);
/**
* Get the current processing mode for the module
*/
enum module_processing_mode (*get_processing_mode)(struct processing_module *mod);
/**
* Module specific reset procedure, called as part of codec_adapter component
* reset in .reset(). This should reset all parameters to their initial stage