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

Commit 153d432c authored by Hansong Zhang's avatar Hansong Zhang
Browse files

BTA_AV: Unused variables

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I9aa90fdb30e91cb61d4db4596d5f68743540d225
parent ea8eac25
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1095,11 +1095,9 @@ void bta_av_stream_chg(tBTA_AV_SCB* p_scb, bool started) {
                   logbool(started).c_str(), started_msk);

  if (started) {
    bta_av_cb.audio_streams |= started_msk;
    /* Let L2CAP know this channel is processed with high priority */
    L2CA_SetAclPriority(p_scb->PeerAddress(), L2CAP_PRIORITY_HIGH);
  } else {
    bta_av_cb.audio_streams &= ~started_msk;
    /* Let L2CAP know this channel is processed with low priority */
    L2CA_SetAclPriority(p_scb->PeerAddress(), L2CAP_PRIORITY_NORMAL);
  }
+0 −1
Original line number Diff line number Diff line
@@ -611,7 +611,6 @@ typedef struct {
  uint8_t rc_acp_idx; /* (index + 1) to RCB */
  uint8_t rs_idx;    /* (index + 1) to SCB for the one waiting for RS on open */
  bool sco_occupied; /* true if SCO is being used or call is in progress */
  uint8_t audio_streams; /* handle mask of streaming audio channels */
} tBTA_AV_CB;

// total attempts are half seconds
+0 −2
Original line number Diff line number Diff line
@@ -1404,8 +1404,6 @@ void bta_debug_av_dump(int fd) {
          bta_av_cb.sco_occupied ? "true" : "false");
  dprintf(fd, "  Connected audio channels: %d\n", bta_av_cb.audio_open_cnt);
  dprintf(fd, "  Connected audio channels mask: 0x%x\n", bta_av_cb.conn_audio);
  dprintf(fd, "  Streaming audio channels mask: 0x%x\n",
          bta_av_cb.audio_streams);
  dprintf(fd, "  Registered audio channels mask: 0x%x\n", bta_av_cb.reg_audio);
  dprintf(fd, "  Connected LCBs mask: 0x%x\n", bta_av_cb.conn_lcb);