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

Commit f73f43b5 authored by Yasuyoshi Terui's avatar Yasuyoshi Terui Committed by android-build-merger
Browse files

Add to receive BTHF_CALL_STATE_DISCONNECTED at HFP

am: c732e883

Change-Id: I5d0282479a5129150721baf6c389fafc5a26f9e1
parents c5932756 c732e883
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ static const char* dump_hf_call_state(bthf_call_state_t call_state) {
    CASE_RETURN_STR(BTHF_CALL_STATE_INCOMING)
    CASE_RETURN_STR(BTHF_CALL_STATE_WAITING)
    CASE_RETURN_STR(BTHF_CALL_STATE_ACTIVE)
    CASE_RETURN_STR(BTHF_CALL_STATE_DISCONNECTED)
    default:
      return "UNKNOWN CALL STATE";
  }
@@ -1201,6 +1202,9 @@ bt_status_t HeadsetInterface::PhoneStateChange(
          ag_res.audio_handle = btif_hf_cb[idx].handle;
        res = BTA_AG_OUT_CALL_ALERT_RES;
        break;
      case BTHF_CALL_STATE_DISCONNECTED:
        res = 0;
        break;
      default:
        BTIF_TRACE_ERROR("%s: Incorrect new ringing call state", __func__);
        status = BT_STATUS_PARM_INVALID;
+2 −1
Original line number Diff line number Diff line
@@ -97,7 +97,8 @@ typedef enum {
  BTHF_CALL_STATE_ALERTING,
  BTHF_CALL_STATE_INCOMING,
  BTHF_CALL_STATE_WAITING,
  BTHF_CALL_STATE_IDLE
  BTHF_CALL_STATE_IDLE,
  BTHF_CALL_STATE_DISCONNECTED
} bthf_call_state_t;

typedef enum {