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

Commit 110c551f authored by Vikram Panduranga's avatar Vikram Panduranga
Browse files

audio: hal: Fix handset mic selection for voice call

A bug was introduced when HFP call support was added previously.
Due to this handset call would always pick single mic even when
Fluence property was enabled. This fix addresses the issue.

Change-Id: I577d64b28bedde925b90417930533ba6dea60793
parent 28718c54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3964,8 +3964,8 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
                snd_device = SND_DEVICE_IN_AANC_HANDSET_MIC;
                adev->acdb_settings |= ANC_FLAG;
            } else if (my_data->fluence_type == FLUENCE_NONE ||
                my_data->fluence_in_voice_call == false ||
                my_data->fluence_in_hfp_call == false) {
                (my_data->fluence_in_voice_call == false &&
                 my_data->fluence_in_hfp_call == false)) {
                snd_device = SND_DEVICE_IN_HANDSET_MIC;
                if (audio_extn_hfp_is_active(adev))
                    platform_set_echo_reference(adev, true, out_device);
+2 −2
Original line number Diff line number Diff line
@@ -3587,8 +3587,8 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
                }
                adev->acdb_settings |= ANC_FLAG;
            } else if (my_data->fluence_type == FLUENCE_NONE ||
                my_data->fluence_in_voice_call == false ||
                my_data->fluence_in_hfp_call == false) {
                (my_data->fluence_in_voice_call == false &&
                 my_data->fluence_in_hfp_call == false)) {
                snd_device = SND_DEVICE_IN_HANDSET_MIC;
                if (audio_extn_hfp_is_active(adev))
                    platform_set_echo_reference(adev, true, out_device);