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

Commit cb9a3c7f authored by Etienne Ruffieux's avatar Etienne Ruffieux Committed by Gerrit Code Review
Browse files

Merge "Handle codec negotiation failed."

parents 3802152e cdf62b28
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
#include "bt_target.h"  // Must be first to define build configuration
#include "bt_trace.h"   // Legacy trace logging
#include "bta/ag/bta_ag_int.h"
#include "common/init_flags.h"
#include "device/include/controller.h"
#include "main/shim/dumpsys.h"
#include "osi/include/log.h"
@@ -766,6 +767,15 @@ static void bta_ag_sco_event(tBTA_AG_SCB* p_scb, uint8_t event) {
          break;

        case BTA_AG_SCO_CLOSE_E:
          if (bluetooth::common::init_flags::
                  sco_codec_timeout_clear_is_enabled()) {
            /* remove listening connection */
            bta_ag_remove_sco(p_scb, false);

            if (p_scb == p_sco->p_curr_scb) p_sco->p_curr_scb = nullptr;

            bta_ag_create_sco(p_scb, false);
          }
          /* sco open is not started yet. just go back to listening */
          p_sco->state = BTA_AG_SCO_LISTEN_ST;
          break;
+1 −0
Original line number Diff line number Diff line
@@ -391,6 +391,7 @@ init_flags!(
        read_encryption_key_size = true,
        redact_log = true,
        rust_event_loop = true,
        sco_codec_timeout_clear,
        sdp_serialization = true,
        sdp_skip_rnr_if_known = true,
        bluetooth_quality_report_callback = true,
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ mod ffi {
        fn read_encryption_key_size_is_enabled() -> bool;
        fn redact_log_is_enabled() -> bool;
        fn rust_event_loop_is_enabled() -> bool;
        fn sco_codec_timeout_clear_is_enabled() -> bool;
        fn sdp_serialization_is_enabled() -> bool;
        fn sdp_skip_rnr_if_known_is_enabled() -> bool;
        fn bluetooth_quality_report_callback_is_enabled() -> bool;