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

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

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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I55a45213b63267276ca86d8938e75bb97723b656
parents 440dfd7f 0b4216b0
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);