From 8a7153265e115fc595fd7a236c58d07fc05b194f Mon Sep 17 00:00:00 2001 From: Aditya Bavanari Date: Mon, 8 Apr 2019 20:04:56 +0530 Subject: [PATCH] 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 --- hal/msm8974/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c index adfeaa5d..a68f4835 100644 --- a/hal/msm8974/platform.c +++ b/hal/msm8974/platform.c @@ -5295,6 +5295,8 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d } else { snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC; } + } else { + snd_device = SND_DEVICE_IN_HANDSET_MIC; } } } else if (my_data->use_generic_handset == true && // system prop is enabled