Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ccebb9b authored by Kunlei Zhang's avatar Kunlei Zhang
Browse files

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: default avatarKunlei Zhang <kunleiz@codeaurora.org>
parent 994729b1
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -3945,7 +3945,8 @@ 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)
@@ -3957,7 +3958,6 @@ static int voice_unmap_cal_memory(int32_t cal_type,
			else
				pr_err("%s: Invalid cal type %d!\n",
					__func__, cal_type);
			}

			result2 = voice_send_start_voice_cmd(v);
			if (result2) {