diff options
author | codeworkx <codeworkx@cyanogenmod.org> | 2012-12-09 15:28:10 +0100 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.org> | 2012-12-09 15:28:10 +0100 |
commit | 215d1cb785ee0c8098e9acef0a539126e66a4d67 (patch) | |
tree | 1cacf52538ddf63a8f1a092b6392e837490dc0b2 | |
parent | f3813ef56fab9628ff6a7744cda0652a4e75dd04 (diff) | |
download | device_samsung_i9300-215d1cb785ee0c8098e9acef0a539126e66a4d67.zip device_samsung_i9300-215d1cb785ee0c8098e9acef0a539126e66a4d67.tar.gz device_samsung_i9300-215d1cb785ee0c8098e9acef0a539126e66a4d67.tar.bz2 |
i9300: 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: I0b7e030e7f3a6d9448b75038941f2a367eb67504
-rwxr-xr-x | audio/audio_hw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index f2ca5d8..8473841 100755 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -2550,13 +2550,11 @@ static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) { struct m0_audio_device *adev = (struct m0_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; } |