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

Commit 2ce01da1 authored by Lalit Kansara's avatar Lalit Kansara Committed by Gerrit - the friendly Code Review server
Browse files

Compilation fix: N-MR1 merge

Change-Id: I24b0b4e9ed19552411b9042dd23ca244a7379377
parent 1b5d3a25
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ bool AudioPolicyManagerCustom::isOffloadSupported(const audio_offload_info_t& of
    }

    if ((prop_rec_play_enabled) &&
         ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCount() > 0))) {
         ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCountOnDevices() > 0))) {
        ALOGD("copl: blocking  compress offload for record concurrency");
        return false;
    }
@@ -1526,7 +1526,7 @@ audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevice(
        prop_rec_play_enabled = atoi(recConcPropValue) || !strncmp("true", recConcPropValue, 4);
    }
    if ((prop_rec_play_enabled) &&
            ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCount() > 0))) {
            ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCountOnDevices() > 0))) {
        if (AUDIO_MODE_IN_COMMUNICATION == mEngine->getPhoneState()) {
            if (AUDIO_OUTPUT_FLAG_VOIP_RX & flags) {
                // allow VoIP using voice path
@@ -1950,7 +1950,7 @@ status_t AudioPolicyManagerCustom::startInput(audio_io_handle_t input,
        prop_rec_play_enabled = atoi(getPropValue) || !strncmp("true", getPropValue, 4);
    }

    if ((prop_rec_play_enabled) &&(mInputs.activeInputsCount() == 0)){
    if ((prop_rec_play_enabled) &&(mInputs.activeInputsCountOnDevices() == 0)){
        // send update to HAL on record playback concurrency
        AudioParameter param = AudioParameter();
        param.add(String8("rec_play_conc_on"), String8("true"));
@@ -1996,7 +1996,7 @@ status_t AudioPolicyManagerCustom::startInput(audio_io_handle_t input,
                    MIX_STATE_MIXING);
        }

        if (mInputs.activeInputsCount() == 0) {
        if (mInputs.activeInputsCountOnDevices() == 0) {
            SoundTrigger::setCaptureState(true);
        }
        setInputDevice(input, getNewInputDevice(input), true /* force */);
@@ -2041,7 +2041,7 @@ status_t AudioPolicyManagerCustom::stopInput(audio_io_handle_t input,
        prop_rec_play_enabled = atoi(propValue) || !strncmp("true", propValue, 4);
    }

    if ((prop_rec_play_enabled) && (mInputs.activeInputsCount() == 0)) {
    if ((prop_rec_play_enabled) && (mInputs.activeInputsCountOnDevices() == 0)) {

        //send update to HAL on record playback concurrency
        AudioParameter param = AudioParameter();