Searched refs:num_gain_tbl_entry (Results 1 – 1 of 1) sorted by relevance
4049 static int num_gain_tbl_entry = 0; variable4054 if (num_gain_tbl_entry == -1) { in platform_add_gain_level_mapping()4060 if (num_gain_tbl_entry >= MAX_VOLUME_CAL_STEPS) { in platform_add_gain_level_mapping()4062 MAX_VOLUME_CAL_STEPS, num_gain_tbl_entry); in platform_add_gain_level_mapping()4063 num_gain_tbl_entry = -1; // indicates error and no more info will be cached in platform_add_gain_level_mapping()4067 if (num_gain_tbl_entry > 0 && tbl_mapping[num_gain_tbl_entry - 1].amp >= tbl_entry->amp) { in platform_add_gain_level_mapping()4069 num_gain_tbl_entry = -1; // indicates error and no more info will be cached in platform_add_gain_level_mapping()4073 tbl_mapping[num_gain_tbl_entry] = *tbl_entry; in platform_add_gain_level_mapping()4074 ++num_gain_tbl_entry; in platform_add_gain_level_mapping()4084 if (num_gain_tbl_entry <= 0 || num_gain_tbl_entry > MAX_VOLUME_CAL_STEPS) { in platform_get_gain_level_mapping()[all …]