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

Commit c25092d4 authored by Madhuri Athota's avatar Madhuri Athota Committed by android-build-merger
Browse files

hal: select HFP devices based on hfp active session

am: 3f6051b5

Change-Id: I1c694b71481a4be0ac901514430d73bcf266e22e
parents 7d881abc 3f6051b5
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) {