diff options
author | Eric Laurent <elaurent@google.com> | 2012-03-16 14:59:41 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-03-16 14:59:41 -0700 |
commit | 066230208698cce9d47f7ae467beca37cae3ecff (patch) | |
tree | 549833d4cecf4ef639c715d2e698d6cc8c2a3960 | |
parent | 141398b744c9f934133b319574ff55344277fae0 (diff) | |
parent | 11db147d66fb1339054414318d13f090d6905e77 (diff) | |
download | bluez-066230208698cce9d47f7ae467beca37cae3ecff.tar.gz |
am 11db147d: audio: fix wrong latency reported by audio HALandroid-4.0.4-aah_r1ics-aah-release
* 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, |