Home
last modified time | relevance | path

Searched refs:new_vol (Results 1 – 1 of 1) sorted by relevance

/hardware/qcom/audio/post_proc/
Dvolume_listener.c225 float new_vol = 0.0; in check_and_set_gain_dep_cal() local
239 (new_vol < (context->left_vol + context->right_vol) / 2)) { in check_and_set_gain_dep_cal()
240 new_vol = (context->left_vol + context->right_vol) / 2; in check_and_set_gain_dep_cal()
244 if (new_vol != current_vol) { in check_and_set_gain_dep_cal()
246 __func__, current_vol, new_vol); in check_and_set_gain_dep_cal()
252 if (new_vol >= 1) { // max amplitude, use highest DRC level in check_and_set_gain_dep_cal()
254 } else if (new_vol <= 0) { in check_and_set_gain_dep_cal()
258 if (new_vol < volume_curve_gain_mapping_table[max_level + 1].amp && in check_and_set_gain_dep_cal()
259 new_vol >= volume_curve_gain_mapping_table[max_level].amp) { in check_and_set_gain_dep_cal()
278 __func__, current_vol, new_vol, current_gain_dep_cal_level, in check_and_set_gain_dep_cal()
[all …]