Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b14d76b8 authored by Uday Kishore Pasupuleti's avatar Uday Kishore Pasupuleti Committed by Ching Tzung Lin
Browse files

hal: audio_stream_frame_size is deprecated



Use audio_stream_out_frame_size instead

Change-Id: I0416e0f9079b834361ac89821459c151cb428c0d
Signed-off-by: default avatarUday Kishore Pasupuleti <upasupul@codeaurora.org>
parent be75de5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;