Merge "hal: fix mutex unlock issue"
diff --git a/hal/audio_extn/spkr_protection.c b/hal/audio_extn/spkr_protection.c
index cd2a94e..b1ad358 100644
--- a/hal/audio_extn/spkr_protection.c
+++ b/hal/audio_extn/spkr_protection.c
@@ -544,8 +544,11 @@
}
goahead = true;
}
- if (!list_empty(&adev->usecase_list))
+ if (!list_empty(&adev->usecase_list)) {
+ ALOGD("%s: Usecase active re-try calibration", __func__);
goahead = false;
+ pthread_mutex_unlock(&handle.mutex_spkr_prot);
+ }
if (goahead) {
int status;
status = spkr_calibrate(t0);