audiopolicy: Do not close SoundTrigger input in CloseAllInputs

During device connect or disconnect, closeAllInputs is called and
all active inputs are closed. This needs to be ignored in case of
sound trigger session as it uses same io handle throughout.
Using same handle causes startInput on new session to fail if
releaseInput happens on previous session and handle removed
from mInputs.
ReleaseInput, startInput are called when record track is
invalidated and restored back as part of closing the input.
This would also cause setCapturestate to never be false.

Change-Id: I9f1c4f82b84805b5f7a0aa770b333e7f2aeee21c
2 files changed