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

Commit 5391b916 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audio policy: fix call volume regression" into nyc-dev

parents 2cfa5620 d3926fe6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1857,7 +1857,8 @@ status_t AudioPolicyManager::setStreamVolumeIndex(audio_stream_type_t stream,
            if (!streamsMatchForvolume(stream, (audio_stream_type_t)curStream)) {
                continue;
            }
            if (!desc->isStreamActive((audio_stream_type_t)curStream)) {
            if (!(desc->isStreamActive((audio_stream_type_t)curStream) ||
                    (isInCall() && (curStream == AUDIO_STREAM_VOICE_CALL)))) {
                continue;
            }
            routing_strategy curStrategy = getStrategy((audio_stream_type_t)curStream);