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>
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 2e954d6..6747b05 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1602,7 +1602,7 @@
* 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;