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

Commit f7c9436a authored by Haynes Mathew George's avatar Haynes Mathew George Committed by android-build-merger
Browse files

audio: log error before closing stream am: f9c7aaed

am: b0918fb1

Change-Id: I33addcd134a1ad3120f9ad55ad957270f7d392cb
parents b2743900 b0918fb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2076,9 +2076,9 @@ exit:
    pthread_mutex_unlock(&out->lock);

    if (ret != 0) {
        out_on_error(&out->stream.common);
        if (out->pcm)
            ALOGE("%s: error %zu - %s", __func__, ret, pcm_get_error(out->pcm));
        out_on_error(&out->stream.common);
        if (out->usecase != USECASE_AUDIO_PLAYBACK_OFFLOAD)
            usleep(bytes * 1000000 / audio_stream_out_frame_size(stream) /
                   out_get_sample_rate(&out->stream.common));