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

Commit 1f6535a6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "HFP: Set audio handle for active device during incoming call"

parents e7ff4e6b 1444896c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1760,8 +1760,9 @@ void bta_ag_send_ring(tBTA_AG_SCB* p_scb,
                      UNUSED_ATTR const tBTA_AG_DATA& data) {
  if ((p_scb->conn_service == BTA_AG_HFP) &&
      p_scb->callsetup_ind != BTA_AG_CALLSETUP_INCOMING) {
    APPL_TRACE_DEBUG("%s: don't send the ring since there is no MT call setup",
                     __func__);
    LOG(WARNING) << __func__ << ": don't send RING, conn_service="
                 << std::to_string(p_scb->conn_service)
                 << ", callsetup_ind=" << std::to_string(p_scb->callsetup_ind);
    return;
  }
  /* send RING */
+1 −1
Original line number Diff line number Diff line
@@ -1157,7 +1157,7 @@ void bta_ag_sco_listen(tBTA_AG_SCB* p_scb,
 ******************************************************************************/
void bta_ag_sco_open(tBTA_AG_SCB* p_scb, UNUSED_ATTR const tBTA_AG_DATA& data) {
  if (!sco_allowed) {
    APPL_TRACE_DEBUG("%s not opening sco, by policy", __func__);
    LOG(INFO) << __func__ << ": not opening sco, by policy";
    return;
  }
  /* if another scb using sco, this is a transfer */
+3 −0
Original line number Diff line number Diff line
@@ -1139,6 +1139,9 @@ bt_status_t HeadsetInterface::PhoneStateChange(
          res = BTA_AG_CALL_WAIT_RES;
        } else {
          res = BTA_AG_IN_CALL_RES;
          if (is_active_device(*bd_addr)) {
            ag_res.audio_handle = control_block.handle;
          }
        }
        if (number) {
          int xx = 0;