Skip to content

Commit

Permalink
am 11db147: audio: fix wrong latency reported by audio HAL
Browse files Browse the repository at this point in the history
* commit '11db147d66fb1339054414318d13f090d6905e77':
  audio: fix wrong latency reported by audio HAL
  • Loading branch information
Eric Laurent authored and Android Git Automerger committed Mar 16, 2012
2 parents 31e54eb + 11db147 commit b739b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/android_audio_hw.c
Expand Up @@ -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,
Expand Down

0 comments on commit b739b67

Please sign in to comment.