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

Commit 2e4655ad authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Gerrit - the friendly Code Review server
Browse files

policy_hal: Revert sound trigger changes related to device switch

Revert the synchronization fix handled in
Changed-Id: I9f1c4f82b84805b5f7a0aa770b333e7f2aeee21c
as it's already handled as part of upstream soundtrigger
AOSP refresh

CRs-Fixed: 1108103
Change-Id: I796230b2e1f5e02ed84e29eebc0e7d7be54c1842
parent 8c73d679
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);