mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
dsp: ensure unassign memory happen when pause voice call failed
When voice call pause failed, cvp cal deregister is not called to make hyp unassign memory happen. Fix it by calling cvp cal deregister even if voice call pause failed. Change-Id: I88afa951e0be50ca06509e9e51ce484b75dcc7d4 Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
This commit is contained in:
parent
994729b1ec
commit
4ccebb9bf0
1 changed files with 12 additions and 12 deletions
|
|
@ -3945,20 +3945,20 @@ static int voice_unmap_cal_memory(int32_t cal_type,
|
|||
__func__, v->session_id, result2);
|
||||
|
||||
result = result2;
|
||||
} else {
|
||||
if (cal_type == CVP_VOCPROC_DYNAMIC_CAL_TYPE)
|
||||
voice_send_cvp_deregister_vol_cal_cmd(v);
|
||||
else if (cal_type == CVP_VOCPROC_STATIC_CAL_TYPE)
|
||||
voice_send_cvp_deregister_cal_cmd(v);
|
||||
else if (cal_type == CVP_VOCDEV_CFG_CAL_TYPE)
|
||||
voice_send_cvp_deregister_dev_cfg_cmd(v);
|
||||
else if (cal_type == CVS_VOCSTRM_STATIC_CAL_TYPE)
|
||||
voice_send_cvs_deregister_cal_cmd(v);
|
||||
else
|
||||
pr_err("%s: Invalid cal type %d!\n",
|
||||
__func__, cal_type);
|
||||
}
|
||||
|
||||
if (cal_type == CVP_VOCPROC_DYNAMIC_CAL_TYPE)
|
||||
voice_send_cvp_deregister_vol_cal_cmd(v);
|
||||
else if (cal_type == CVP_VOCPROC_STATIC_CAL_TYPE)
|
||||
voice_send_cvp_deregister_cal_cmd(v);
|
||||
else if (cal_type == CVP_VOCDEV_CFG_CAL_TYPE)
|
||||
voice_send_cvp_deregister_dev_cfg_cmd(v);
|
||||
else if (cal_type == CVS_VOCSTRM_STATIC_CAL_TYPE)
|
||||
voice_send_cvs_deregister_cal_cmd(v);
|
||||
else
|
||||
pr_err("%s: Invalid cal type %d!\n",
|
||||
__func__, cal_type);
|
||||
|
||||
result2 = voice_send_start_voice_cmd(v);
|
||||
if (result2) {
|
||||
pr_err("%s: Voice_send_start_voice_cmd failed for session 0x%x, err %d!\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue