hal: restore device for other active usecases when VOIP stopped

When music stream is started before VOIP released, the output device
will be aligned to the device used by VOIP stream. And after VOIP
released later, the device for audio stream keeps unchanged.
Also if an audio record session is started during VOIP playback,
input device won't be aligned to the input device used by VOIP. Then
when VOIP released, the input device will be disabled and due to they
share the same BE, input path for audio record breaks.
Make alignments of input device for audio record session with VOIP,
and restore the device for current active usecases when VOIP released.

Change-Id: I19419a44e509e27be41ce06c36ca14592f7b09c1
CRs-Fixed: 1033873
2 files changed