aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-03-16 15:02:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-03-16 15:02:20 -0700
commit54f292720e41afa7ef66ce7d19ff12521f003706 (patch)
tree665287f07730041e1382a5f48a8a38a51752cd71
parent0517b6721e69d963c3c1dd06b65f5090a34e4b5f (diff)
parent343ec8cd344e9bdac78cc2a15468aee65e2af452 (diff)
downloadbluez-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.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,