aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-03-16 15:00:05 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-03-16 15:00:05 -0700
commit343ec8cd344e9bdac78cc2a15468aee65e2af452 (patch)
tree665287f07730041e1382a5f48a8a38a51752cd71
parentd79e684287ccf6673e251458c0ad571af8c86611 (diff)
parent11db147d66fb1339054414318d13f090d6905e77 (diff)
downloadbluez-343ec8cd344e9bdac78cc2a15468aee65e2af452.tar.gz
am 11db147d: audio: fix wrong latency reported by audio HAL
* commit '11db147d66fb1339054414318d13f090d6905e77': audio: fix wrong latency reported by audio HAL
-rw-r--r--audio/android_audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/android_audio_hw.c b/audio/android_audio_hw.c
index e552f7a7..348ad14d 100644
--- a/audio/android_audio_hw.c
+++ b/audio/android_audio_hw.c
@@ -180,7 +180,7 @@ static uint32_t out_get_latency(const struct audio_stream_out *stream)
{
const struct astream_out *out = (const struct astream_out *)stream;
- return (out->buffer_duration_us / 1000) + 200;
+ return ((out->buffer_duration_us * BUF_NUM_PERIODS) / 1000) + 200;
}
static int out_set_volume(struct audio_stream_out *stream, float left,