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

Commit 6299e7b1 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "audio policy: fix sound trigger capture disabling in startInput()"

parents 06dddbf8 05b345e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1754,7 +1754,7 @@ status_t AudioPolicyManager::startInput(audio_io_handle_t input,

            audio_devices_t primaryInputDevices = availablePrimaryInputDevices();
            if (((device & primaryInputDevices & ~AUDIO_DEVICE_BIT_IN) != 0) &&
                    mInputs.activeInputsCountOnDevices(primaryInputDevices) == 0) {
                    mInputs.activeInputsCountOnDevices(primaryInputDevices) == 1) {
                SoundTrigger::setCaptureState(true);
            }