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

Commit 9931e788 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: In case of error in in_read don't return zero"

parents aec582e4 02baf33f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3815,7 +3815,10 @@ exit:
            pthread_mutex_unlock(&adev->lock);
            in->standby = true;
        }
        if (!audio_extn_cin_attached_usecase(in->usecase)) {
            bytes_read = bytes;
            memset(buffer, 0, bytes);
        }
        in_standby(&in->stream.common);
        ALOGV("%s: read failed status %d- sleeping for buffer duration", __func__, ret);
        usleep((uint64_t)bytes * 1000000 / audio_stream_in_frame_size(stream) /