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

Commit d3926fe6 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: fix call volume regression

Commit 1fd372e4 caused a regression preventing to
change in call volume.

Bug: 28223472
Change-Id: I31bd220ebdde1175c2f0a5ef1e874e86c6615ff8
parent bc0c73e0
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);