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

Commit c2d12dc0 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Add stack/btm/btm_sco::get_index am: 0e3f9467

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1553562

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifc7da33c8a24839eb0b3b89ff1f8d99ed22ef3b6
parents 78c1d873 0e3f9467
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -119,6 +119,18 @@ typedef struct {
    def_esco_parms.max_latency_ms = 12;
    sco_route = ESCO_DATA_PATH_PCM;
  }

  uint16_t get_index(const tSCO_CONN* p_sco) const {
    CHECK(p_sco != nullptr);
    const tSCO_CONN* p = sco_db;
    for (uint16_t xx = 0; xx < kMaxScoLinks; xx++, p++) {
      if (p_sco == p) {
        return xx;
      }
    }
    return 0xffff;
  }

} tSCO_CB;

extern void btm_sco_chk_pend_rolechange(uint16_t hci_handle);