diff options
author | Eric Laurent <elaurent@google.com> | 2012-03-16 15:02:20 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-03-16 15:02:20 -0700 |
commit | 54f292720e41afa7ef66ce7d19ff12521f003706 (patch) | |
tree | 665287f07730041e1382a5f48a8a38a51752cd71 | |
parent | 0517b6721e69d963c3c1dd06b65f5090a34e4b5f (diff) | |
parent | 343ec8cd344e9bdac78cc2a15468aee65e2af452 (diff) | |
download | bluez-54f292720e41afa7ef66ce7d19ff12521f003706.tar.gz |
am 343ec8cd: am 11db147d: audio: fix wrong latency reported by audio HAL
* commit '343ec8cd344e9bdac78cc2a15468aee65e2af452':
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, |