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

Commit 3f6051b5 authored by Madhuri Athota's avatar Madhuri Athota Committed by Tom Cherry
Browse files

hal: select HFP devices based on hfp active session



Enabling the HFP devices based on hfp active session.

Bug : 31922459

Change-Id: I64fcbe7d5662f6408cf95afa7a89581bbe421281
Signed-off-by: default avatarYamit Mehta <ymehta@codeaurora.org>
Signed-off-by: default avatarMadhuri Athota <mathota@codeaurora.org>
parent 8e79453f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1547,7 +1547,7 @@ snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devi
        goto exit;
    }

    if (mode == AUDIO_MODE_IN_CALL) {
    if (mode == AUDIO_MODE_IN_CALL || audio_extn_hfp_is_active(adev)) {
        if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
            devices & AUDIO_DEVICE_OUT_WIRED_HEADSET ||
            devices & AUDIO_DEVICE_OUT_LINE) {
+1 −1
Original line number Diff line number Diff line
@@ -1960,7 +1960,7 @@ snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devi
        goto exit;
    }

    if (voice_is_in_call(adev) || adev->enable_voicerx) {
    if (voice_is_in_call(adev) || adev->enable_voicerx || audio_extn_hfp_is_active(adev)) {
        if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
            devices & AUDIO_DEVICE_OUT_WIRED_HEADSET ||
            devices & AUDIO_DEVICE_OUT_LINE) {