hal: Fix the input device is disabled when VOICE and VOIP are active

Tx mute is observed when VOICE and VOIP are active. When voice and voip
usecases are present, input devices of VOICE and VOIP do not update to
same snd_device, then tx device is disabled to cause mute issue.

Fix this by adding proper check at disable/enable of devices for
capture usecases that share same backend.

CRs-Fixed: 988594
Change-Id: Id8d34574efac3b9cc860341449e426f2790656da
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 95595b4..048e5b2 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -808,7 +808,7 @@
                 (usecase->in_snd_device != snd_device || force_routing) &&
                 ((uc_info->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) &&
                  (((usecase->devices & ~AUDIO_DEVICE_BIT_IN) & AUDIO_DEVICE_IN_ALL_CODEC_BACKEND) ||
-                  (usecase->type == VOICE_CALL))) &&
+                  (usecase->type == VOICE_CALL) || (usecase->type == VOIP_CALL))) &&
                 (usecase->id != USECASE_AUDIO_SPKR_CALIB_TX)) {
             ALOGV("%s: Usecase (%s) is active on (%s) - disabling ..",
                   __func__, use_case_table[usecase->id],