Searched refs:num_gain_tbl_entry (Results 1 – 1 of 1) sorted by relevance
4146 static int num_gain_tbl_entry = 0; variable4151 if (num_gain_tbl_entry == -1) { in platform_add_gain_level_mapping()4157 if (num_gain_tbl_entry >= MAX_VOLUME_CAL_STEPS) { in platform_add_gain_level_mapping()4159 MAX_VOLUME_CAL_STEPS, num_gain_tbl_entry); in platform_add_gain_level_mapping()4160 num_gain_tbl_entry = -1; // indicates error and no more info will be cached in platform_add_gain_level_mapping()4164 if (num_gain_tbl_entry > 0 && tbl_mapping[num_gain_tbl_entry - 1].amp >= tbl_entry->amp) { in platform_add_gain_level_mapping()4166 num_gain_tbl_entry = -1; // indicates error and no more info will be cached in platform_add_gain_level_mapping()4170 tbl_mapping[num_gain_tbl_entry] = *tbl_entry; in platform_add_gain_level_mapping()4171 ++num_gain_tbl_entry; in platform_add_gain_level_mapping()4181 if (num_gain_tbl_entry <= 0 || num_gain_tbl_entry > MAX_VOLUME_CAL_STEPS) { in platform_get_gain_level_mapping()[all …]