summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAmit Shekhar <ashekhar@codeaurora.org>2014-03-06 22:41:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-06 22:41:21 +0000
commit9c19b5480f7921e62d2a102abafe0c159b7679b8 (patch)
tree366938e1eeac7dcc44911bde2ee0acabf484978e /modules
parent8a90666cccac19314216ab1ff8b99ecb854ccf04 (diff)
parentee4e28c9ebc7f26a1a25d1042d5a941139055447 (diff)
downloadhardware_libhardware-9c19b5480f7921e62d2a102abafe0c159b7679b8.zip
hardware_libhardware-9c19b5480f7921e62d2a102abafe0c159b7679b8.tar.gz
hardware_libhardware-9c19b5480f7921e62d2a102abafe0c159b7679b8.tar.bz2
am ee4e28c9: am 1482406b: usbaudio: fix for out->dev->lock remains locked in error case
* commit 'ee4e28c9ebc7f26a1a25d1042d5a941139055447': usbaudio: fix for out->dev->lock remains locked in error case
Diffstat (limited to 'modules')
-rw-r--r--modules/usbaudio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/usbaudio/audio_hw.c b/modules/usbaudio/audio_hw.c
index f33c343..24a2d63 100644
--- a/modules/usbaudio/audio_hw.c
+++ b/modules/usbaudio/audio_hw.c
@@ -212,7 +212,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
err:
pthread_mutex_unlock(&out->lock);
-
+ pthread_mutex_unlock(&out->dev->lock);
if (ret != 0) {
usleep(bytes * 1000000 / audio_stream_frame_size(&stream->common) /
out_get_sample_rate(&stream->common));