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

Commit 7271dc99 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

Change-Id: I84ea8b2c51e999a1f4845f653f6b9e1dfdb9c63b
parents 4946ea28 cb815c95
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)