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

Commit 458b5a70 authored by Satya Krishna Pindiproli's avatar Satya Krishna Pindiproli Committed by Gerrit - the friendly Code Review server
Browse files

hal: fix voice call mute during video recording

During a voice call over BT headset, if video recording
is initiated, the voice call gets muted as long as the
recording is active.

A tone is played on both speaker and BT headset to indicate
that video recording has been initiated during which voice call
gets disabled over the BT headset but never gets enabled again.

Avoid disabling of voice call by fixing the conditional check
in check_usecases_capture_codec_backend().

CRs-Fixed: 2014366
Change-Id: Ieed8bf7421536f9ec398ea4ad7b316db11fda413
parent 653aaefa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1201,7 +1201,7 @@ static void check_usecases_capture_codec_backend(struct audio_device *adev,
                (usecase->in_snd_device != snd_device || force_routing) &&
                ((uc_info->devices & backend_check_cond) &&
                 (((usecase->devices & ~AUDIO_DEVICE_BIT_IN) & AUDIO_DEVICE_IN_ALL_CODEC_BACKEND) ||
                  (usecase->type == VOICE_CALL) || (usecase->type == VOIP_CALL))) &&
                  (usecase->type == VOIP_CALL))) &&
                (usecase->id != USECASE_AUDIO_SPKR_CALIB_TX)) {
            ALOGV("%s: Usecase (%s) is active on (%s) - disabling ..",
                  __func__, use_case_table[usecase->id],