audio-hal: skip get_priority_input for record usecase
Skipping get_priority_input to select differnt acdb device
during concurrent record usecase with different audio sources.
Suggested-by: Shital Jadhav (Temp) <shitjadh@qti.qualcomm.com>
Change-Id: I3eb37e7ad44fb94cd778dad85fb250e597833105
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
Signed-off-by: sasevs <quic_sasevs@quicinc.com>
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index e852b0e..1fc0586 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3176,18 +3176,8 @@
priority_in = voip_in;
} else {
#ifdef SKIP_INPUT_SOURCE_PRIORITY
-
- // Precondition: Google Assistant has active use-cases: (1)Echo-ref and (2) Audio-record (with Voice-recognition)
- // When fm is requested: audio-rec(VR) use-case is selected due to get-priority-input order.
- // To avoid situation skipping use-cases: FM and Echo-Ref from the get-priority-input.
- if ((uc_id == USECASE_AUDIO_RECORD_FM_VIRTUAL || uc_id == USECASE_AUDIO_RECORD_ECHO_REF_EXT)){
- ALOGD("%s: Skipping get_priority_input for use-case-id:%d(%s).", __func__, uc_id, use_case_table[uc_id]);
- } else {
- /* get the input with the highest priority source*/
- priority_in = get_priority_input(adev);
- }
+ ALOGD("%s: Skipping get_priority_input for use-case-id:%d(%s).", __func__, uc_id, use_case_table[uc_id]);
#else
- /* get the input with the highest priority source*/
priority_in = get_priority_input(adev);
#endif