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

Commit 58091c2e authored by David Lin's avatar David Lin Committed by android-build-merger
Browse files

audiopolicy: do not check for mode_in_communication for voip flags

am: 72ad4b91

Change-Id: I742803dd00cdd5bcbdf23b99bb6b415f3f118def
parents b636c4fd 72ad4b91
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -933,7 +933,6 @@ audio_io_handle_t AudioPolicyManager::getOutputForDevice(
    if (stream == AUDIO_STREAM_TTS) {
        flags = AUDIO_OUTPUT_FLAG_TTS;
    } else if (stream == AUDIO_STREAM_VOICE_CALL &&
               getPhoneState() == AUDIO_MODE_IN_COMMUNICATION &&
               audio_is_linear_pcm(format)) {
        flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_VOIP_RX |
                                       AUDIO_OUTPUT_FLAG_DIRECT);
@@ -1647,7 +1646,6 @@ audio_io_handle_t AudioPolicyManager::getInputForDevice(audio_devices_t device,
            halInputSource = AUDIO_SOURCE_VOICE_RECOGNITION;
        }
    } else if (inputSource == AUDIO_SOURCE_VOICE_COMMUNICATION &&
               getPhoneState() == AUDIO_MODE_IN_COMMUNICATION &&
               audio_is_linear_pcm(format)) {
        flags = (audio_input_flags_t)(flags | AUDIO_INPUT_FLAG_VOIP_TX);
    }