dsp: Mark cal block after use

After applying calibration on DSP, cal block
is marked stale to ensure same calibration is not
reused for future usecase.

Change-Id: I9f446c0602f4ab34ca71b9d2611319624fb19cd2
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
This commit is contained in:
Vikram Panduranga
2017-09-27 12:17:36 -07:00
committed by Gerrit - the friendly Code Review server
parent dd3e130abe
commit 770b8383d2
7 changed files with 156 additions and 66 deletions

View File

@@ -37,6 +37,7 @@ struct cal_block_data {
void *cal_info;
struct list_head list;
struct cal_data cal_data;
bool cal_stale;
struct mem_map_data map_data;
int32_t buffer_number;
};
@@ -98,4 +99,8 @@ size_t get_user_cal_type_size(int32_t cal_type);
/* Version of the cal type*/
int32_t cal_utils_get_cal_type_version(void *cal_type_data);
void cal_utils_mark_cal_used(struct cal_block_data *cal_block);
bool cal_utils_is_cal_stale(struct cal_block_data *cal_block);
#endif