diff options
author | Eric Laurent <elaurent@google.com> | 2012-03-16 14:59:14 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-03-16 14:59:14 -0700 |
commit | b739b67a1e6a573b5da924aa601fd87faec3a02d (patch) | |
tree | ddcaa3835140774540d02cc0099c4d131c6f83cf | |
parent | 31e54ebdc47e2d07bf7923dd2003be8440f827a6 (diff) | |
parent | 11db147d66fb1339054414318d13f090d6905e77 (diff) | |
download | bluez-b739b67a1e6a573b5da924aa601fd87faec3a02d.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.c | 2 |
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, |