From 50cfc13d8b58cf9ccd8e1efca02dc851f958aae0 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Sun, 16 Dec 2012 11:17:43 +0100 Subject: p31xx: audio: remove mutex lock at adev_set_voice_volume if set_mode is called it's locking and calls adev_set_voice_volume which fails to lock then. Change-Id: I5026df7f5d8388f2d74f63eb9f43ec9fab2fc890 --- audio/audio_hw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/audio/audio_hw.c b/audio/audio_hw.c index ca803e5..539c73f 100755 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -2525,13 +2525,11 @@ static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) { struct espresso_audio_device *adev = (struct espresso_audio_device *)dev; - pthread_mutex_lock(&adev->lock); adev->voice_volume = volume; if (adev->mode == AUDIO_MODE_IN_CALL) ril_set_call_volume(&adev->ril, SOUND_TYPE_VOICE, volume); - pthread_mutex_unlock(&adev->lock); return 0; } -- cgit v1.1