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

Commit b766915a authored by Chris Manton's avatar Chris Manton
Browse files

Add tSCO_CB::Init

Towards encapsulated code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I74915b3a39423483206297df7e04a6572fd5ba51
parent d7864339
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -91,6 +91,13 @@ typedef struct {
  uint16_t sco_disc_reason;
  bool esco_supported;        /* true if 1.2 cntlr AND supports eSCO links */
  esco_data_path_t sco_route; /* HCI, PCM, or TEST */

  void Init() {
    sco_disc_reason = BTM_INVALID_SCO_DISC_REASON;
    def_esco_parms = esco_parameters_for_codec(ESCO_CODEC_CVSD);
    def_esco_parms.max_latency_ms = 12;
    sco_route = ESCO_DATA_PATH_PCM;
  }
} tSCO_CB;

extern void btm_sco_chk_pend_rolechange(uint16_t hci_handle);