sthal: handle audio record case during voice/voip stopped

- If recording is running between stop voice/voip usecase and
  set mode 0, inactive sequence of recording will not close
  voice/voip mode completely.
- Add one flag to close voice/voip mode indeed

Bug: 139670493
Test: issue sequece, Voice/VoIP call on hs/bt

Change-Id: I2598947f064c82f07e3d48d71cfef45033c1687a
Signed-off-by: Jasmine Cha <chajasmine@google.com>
1 file changed