aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-12-09 17:51:27 +0100
committercodeworkx <codeworkx@cyanogenmod.org>2012-12-09 17:51:27 +0100
commit01e436bd2684e407fa110e60531d1c3253c00aab (patch)
tree2fe0c3bf72e29776f9f85e5a4609a023472bf2c9 /audio
parente20bd8cadae7075b26fad13478ce2ac08577fa6d (diff)
downloaddevice_samsung_espresso3g-01e436bd2684e407fa110e60531d1c3253c00aab.tar.gz
device_samsung_espresso3g-01e436bd2684e407fa110e60531d1c3253c00aab.tar.bz2
device_samsung_espresso3g-01e436bd2684e407fa110e60531d1c3253c00aab.zip
p51xx: 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: I802b979f82bc4792da0f682f62ddb3e8963582ce
Diffstat (limited to 'audio')
-rwxr-xr-xaudio/audio_hw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 678d673..a6a8759 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -2522,13 +2522,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;
}