diff options
| author | Uday Kishore Pasupuleti <upasupul@codeaurora.org> | 2015-11-13 20:06:37 -0800 |
|---|---|---|
| committer | Ching Tzung Lin <ctlin@google.com> | 2015-11-16 14:36:32 -0800 |
| commit | b14d76b8cb245d3db231e46873cd767736727619 (patch) | |
| tree | 9837725c3b6a33f78214cff7ca62ce1b8bd39aea | |
| parent | be75de5e7363aae0dbef69c016b60e02bb391ff6 (diff) | |
| download | android_hardware_qcom_audio-b14d76b8cb245d3db231e46873cd767736727619.tar.gz android_hardware_qcom_audio-b14d76b8cb245d3db231e46873cd767736727619.tar.bz2 android_hardware_qcom_audio-b14d76b8cb245d3db231e46873cd767736727619.zip | |
hal: audio_stream_frame_size is deprecated
Use audio_stream_out_frame_size instead
Change-Id: I0416e0f9079b834361ac89821459c151cb428c0d
Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
| -rw-r--r-- | hal/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index 2e954d67..6747b057 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -1602,7 +1602,7 @@ static ssize_t out_write_for_no_output(struct audio_stream_out *stream, * Sleep for the amount of buffer duration */ lock_output_stream(out); - usleep(bytes * 1000000 / audio_stream_frame_size(&out->stream.common) / + usleep(bytes * 1000000 / audio_stream_out_frame_size(&out->stream.common) / out_get_sample_rate(&out->stream.common)); pthread_mutex_unlock(&out->lock); return bytes; |
