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
This commit is contained in:
Aditya Bavanari 2019-04-08 20:04:56 +05:30
parent 054513d029
commit 8a7153265e
1 changed files with 2 additions and 0 deletions

View File

@ -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