Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97a89a48 authored by Ramu Gottipati's avatar Ramu Gottipati Committed by Gerrit - the friendly Code Review server
Browse files

hal: Update bt hfp cal input device selection for LINE_OUT

- For BT HFP call, default input selection device is
  SND_DEVICE_IN_HANDSET_MIC.
- Due to this, observing echo at far end for lineout.
- To fix this, updated input device as SND_DEVICE_IN_VOICE_SPEAKER_MIC
  for lineout device.

Change-Id: I68bc6356887890b881dfcc0676bd14780418dbee
parent 0337652d
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -4560,7 +4560,12 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
            } else if (my_data->fluence_type == FLUENCE_NONE ||
                (my_data->fluence_in_voice_call == false &&
                 my_data->fluence_in_hfp_call == false)) {
                 if (out_device & AUDIO_DEVICE_OUT_LINE &&
                     audio_extn_hfp_is_active(adev)) {
                     snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
                 } else {
                     snd_device = SND_DEVICE_IN_HANDSET_MIC;
                 }
                 if (audio_extn_hfp_is_active(adev))
                     platform_set_echo_reference(adev, true, out_device);
            } else {