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

Commit 812e4198 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "policy_hal: Revert sound trigger changes related to device switch" into...

Merge "policy_hal: Revert sound trigger changes related to device switch" into audio-userspace.lnx.2.2-dev
parents b8d55fdc 2e4655ad
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -2231,13 +2231,7 @@ void AudioPolicyManagerCustom::closeAllInputs() {
            mAudioPatches.removeItemsAt(patch_index);
            patchRemoved = true;
        }
        if ((inputDesc->getOpenRefCount() > 0) && inputDesc->isSoundTrigger()
            && (mInputs.size() == 1)) {
            ALOGD("Do not close sound trigger input handle");
        } else {
        mpClientInterface->closeInput(mInputs.keyAt(input_index-1));
            mInputs.removeItem(mInputs.keyAt(input_index-1));
        }
    }
    mInputs.clear();
    SoundTrigger::setCaptureState(false);