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

Commit 9f99e382 authored by Sungmin Choi's avatar Sungmin Choi Committed by The Android Automerger
Browse files

alsa_audio: route call voice to phone when on HDMI



Currently call voice is routed to HDMI rx/tx when HDMI cable is plugging.  So
call voice is muted.  MO/MT call voice routes to speaker/back-mic and
communication routes to HDMI rx/back-mic when HDMI cable is plugging.

Bug: 7218296
Change-Id: I53fc4d5b77ad6502a32c4e8d06e17141e2aa4be2
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
parent 1af98a61
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -399,8 +399,12 @@ void switchDevice(alsa_handle_t *handle, uint32_t devices, uint32_t mode)
                      AudioSystem::DEVICE_IN_BUILTIN_MIC);
#endif
        } else if (devices & AudioSystem::DEVICE_OUT_AUX_DIGITAL) {
            if (mode == AudioSystem::MODE_IN_CALL)
                devices = devices | (AudioSystem::DEVICE_IN_BACK_MIC |
                           AudioSystem::DEVICE_OUT_SPEAKER);
            else
                devices = devices | (AudioSystem::DEVICE_OUT_AUX_DIGITAL |
                      AudioSystem::DEVICE_IN_AUX_DIGITAL);
                          AudioSystem::DEVICE_IN_BACK_MIC);
#ifdef QCOM_PROXY_DEVICE_ENABLED
        } else if ((devices & AudioSystem::DEVICE_OUT_PROXY) ||
                  (devices & AudioSystem::DEVICE_IN_PROXY)) {