summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-10-26 08:14:05 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-10-26 08:14:05 -0700
commit000601d520c6049ab9b34b6f08bf436c5ba94336 (patch)
tree766cecc10ddbb9947ba9676c9b65e835b8c22703
parent9d1bcfbc5d3b28e356071726132b591d6585498a (diff)
parent5baa6a5f7f6f9360571d93a46b1c936c6be2bdb0 (diff)
downloadandroid_hardware_qcom_audio-000601d520c6049ab9b34b6f08bf436c5ba94336.tar.gz
android_hardware_qcom_audio-000601d520c6049ab9b34b6f08bf436c5ba94336.tar.bz2
android_hardware_qcom_audio-000601d520c6049ab9b34b6f08bf436c5ba94336.zip
Merge "hal: fix race condition between sthal and ahal"
-rw-r--r--hal/audio_extn/soundtrigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_extn/soundtrigger.c b/hal/audio_extn/soundtrigger.c
index e148ead0..5f4c6bab 100644
--- a/hal/audio_extn/soundtrigger.c
+++ b/hal/audio_extn/soundtrigger.c
@@ -139,12 +139,12 @@ void audio_extn_sound_trigger_stop_lab(struct stream_in *in)
pthread_mutex_lock(&st_dev->lock);
st_ses_info = get_sound_trigger_info(in->capture_handle);
+ pthread_mutex_unlock(&st_dev->lock);
if (st_ses_info) {
event.u.ses_info = st_ses_info->st_ses;
ALOGV("%s: AUDIO_EVENT_STOP_LAB pcm %p", __func__, st_ses_info->st_ses.pcm);
st_dev->st_callback(AUDIO_EVENT_STOP_LAB, &event);
}
- pthread_mutex_unlock(&st_dev->lock);
}
void audio_extn_sound_trigger_check_and_get_session(struct stream_in *in)
{