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

Commit b62ec27c authored by Devin Kim's avatar Devin Kim Committed by android-build-merger
Browse files

hal: msm8974: select HFP devices based on hfp active session am: d789e43c

am: 57f88c6b

Change-Id: Id0ff00a9489bc14fbbb3d11eeeddc8a9f0ca589f
parents 16524b9e 57f88c6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2060,7 +2060,8 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d

    ALOGV("%s: enter: out_device(%#x) in_device(%#x) channel_count (%d) channel_mask (0x%x)",
          __func__, out_device, in_device, channel_count, channel_mask);
    if ((out_device != AUDIO_DEVICE_NONE) && voice_is_in_call(adev)) {
    if ((out_device != AUDIO_DEVICE_NONE) && (voice_is_in_call(adev) ||
        audio_extn_hfp_is_active(adev))) {
        if (adev->voice.tty_mode != TTY_MODE_OFF) {
            if (out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
                out_device & AUDIO_DEVICE_OUT_WIRED_HEADSET ||