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

Commit cb815c95 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents ffd80b92 851d3ff2
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)