hal: Update in_snd_device for USB headphone device use cases

When a USB headphone is inserted and capture is not supported,
select the default in_snd_device to handset mic to fix the
Tx mute issues in voice call usecases.

CRs-Fixed: 2430419, 2430420
Change-Id: I6887135784cb928c1eb53f8fecf6256f6f4eabd4
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 41ff789..f5c9861 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -4679,9 +4679,11 @@
         } else if (out_device &
                     (AUDIO_DEVICE_OUT_USB_DEVICE |
                      AUDIO_DEVICE_OUT_USB_HEADSET)) {
-          if (audio_extn_usb_is_capture_supported()) {
-              snd_device = SND_DEVICE_IN_VOICE_USB_HEADSET_MIC;
-          }
+            if (audio_extn_usb_is_capture_supported()) {
+                snd_device = SND_DEVICE_IN_VOICE_USB_HEADSET_MIC;
+            } else {
+                snd_device = SND_DEVICE_IN_HANDSET_MIC;
+            }
         }
     } else if (my_data->use_generic_handset == true &&  //     system prop is enabled
                (my_data->source_mic_type & SOURCE_QUAD_MIC) &&  // AND 4mic is available