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

Commit 01fd3fbe authored by Eric Laurent's avatar Eric Laurent
Browse files

audio: fix audio mode transitions

Allow direct transition from IN_CALL to IN_COMMUNICATION
modes by exiting in call state when transitioning to NORMAL or
IN_COMMUNICATION modes instead of only when transitioning to NORMAL.

Bug: 17591576.
Change-Id: I2a915df0b283b311b8cbec0fa9cd8573f76d4686
parent 4920d385
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1327,7 +1327,7 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
         *       Because select_devices() must be called to switch back the music
         *       playback to headset.
         */
        if ((adev->mode == AUDIO_MODE_NORMAL) &&
        if (((adev->mode == AUDIO_MODE_NORMAL) || (adev->mode == AUDIO_MODE_IN_COMMUNICATION)) &&
                voice_is_in_call(adev) &&
                output_drives_call(adev, out)) {
            ret = voice_stop_call(adev);