diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2017-01-19 23:25:00 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-01-20 10:37:16 +0100 |
commit | 4b312c3e2917eabd3aa3fd10e68c5b3393c95d43 (patch) | |
tree | b6ad8a48e6c7fef0016ba5dc34d08bab610c7c5c | |
parent | ea8b295f374567be941c903b54e45efea7c0d2a5 (diff) | |
download | android_device_samsung_sltexx-4b312c3e2917eabd3aa3fd10e68c5b3393c95d43.tar.gz android_device_samsung_sltexx-4b312c3e2917eabd3aa3fd10e68c5b3393c95d43.tar.xz android_device_samsung_sltexx-4b312c3e2917eabd3aa3fd10e68c5b3393c95d43.zip |
audio: Add lock setting mic_mute
-rw-r--r-- | hal/audio/audio_hw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hal/audio/audio_hw.c b/hal/audio/audio_hw.c index e08293f..49d5399 100644 --- a/hal/audio/audio_hw.c +++ b/hal/audio/audio_hw.c @@ -2297,11 +2297,13 @@ static int adev_set_mic_mute(struct audio_hw_device *dev, bool state) ALOGV("*** %s: set mic mute: %d\n", __func__, state); + pthread_mutex_lock(&adev->lock); if (adev->in_call) { ril_set_mute(&adev->ril, mute_condition); } adev->mic_mute = state; + pthread_mutex_unlock(&adev->lock); return 0; } |