diff options
author | codeworkx <codeworkx@cyanogenmod.org> | 2012-12-16 11:17:43 +0100 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.org> | 2012-12-16 11:17:43 +0100 |
commit | 50cfc13d8b58cf9ccd8e1efca02dc851f958aae0 (patch) | |
tree | 5b5b6294562b7582ab2dbb2388e3385d9b37eba4 /audio | |
parent | c2bd5cd1480df97741a3ec78b6d869fec1e34f97 (diff) | |
download | device_samsung_espressowifi-50cfc13d8b58cf9ccd8e1efca02dc851f958aae0.tar.gz device_samsung_espressowifi-50cfc13d8b58cf9ccd8e1efca02dc851f958aae0.tar.bz2 device_samsung_espressowifi-50cfc13d8b58cf9ccd8e1efca02dc851f958aae0.zip |
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
Diffstat (limited to 'audio')
-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 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; } |