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

Commit f470b52e authored by Haynes Mathew George's avatar Haynes Mathew George Committed by android-build-merger
Browse files

Merge "APM: Allow VOIP_TX input selection" into oc-dr1-dev am: cb815c95

am: 7271dc99

Change-Id: Iec813ab78a259e488180afba355afe2d00b7ea63
parents 543b75b8 7271dc99
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1595,6 +1595,10 @@ audio_io_handle_t AudioPolicyManager::getInputForDevice(audio_devices_t device,
        } else {
            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);
    }

    // find a compatible input profile (not necessarily identical in parameters)