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

Commit ae05f9dc authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not log error if HAL does not support VOIP volume." am: 42437aa7...

Merge "Do not log error if HAL does not support VOIP volume." am: 42437aa7 am: 4e89e7fd am: f2ebd1c0

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2585177



Change-Id: I7bd4d8fa60c2f887332a1e54a768d4223ee8eaf5
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 0077d8c4 f2ebd1c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4700,7 +4700,8 @@ status_t AudioFlinger::PlaybackThread::handleVoipVolume_l(float *volume)
    if ((mOutput->flags & AUDIO_OUTPUT_FLAG_VOIP_RX) != 0) {
        if (*volume != mLeftVolFloat) {
            result = mOutput->stream->setVolume(*volume, *volume);
            ALOGE_IF(result != OK,
            // HAL can return INVALID_OPERATION if operation is not supported.
            ALOGE_IF(result != OK && result != INVALID_OPERATION,
                     "Error when setting output stream volume: %d", result);
            if (result == NO_ERROR) {
                mLeftVolFloat = *volume;