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

Commit b3f1f9bd authored by spuligil's avatar spuligil Committed by Ravindra Konda
Browse files

fw-api: CL 25036225 - update fw common interface files

WMI: add AUDIO_TRANSPORT_SWITCH RESP_STATUS_CMD,TYPE_EVENT msg defs
Change-Id: I2dcdd9367b5d674b00d6daa1bb61ef31f1423137
CRs-Fixed: 2262693
parent cd65453b
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1412,6 +1412,8 @@ typedef enum {
    WMITLV_TAG_STRUC_wmi_pdev_utf_event_fixed_param,
    WMITLV_TAG_STRUC_wmi_vdev_oob_connection_req_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_vdev_oob_connection_resp_event_fixed_param,
    WMITLV_TAG_STRUC_wmi_audio_transport_switch_resp_status_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_audio_transport_switch_type_event_fixed_param,
} WMITLV_TAG_ID;
/*
 * IMPORTANT: Please add _ALL_ WMI Commands Here.
@@ -1950,6 +1952,7 @@ typedef enum {
    OP(WMI_CSA_EVENT_STATUS_INDICATION_CMDID) \
    OP(WMI_VDEV_SCHED_MODE_PROBE_REQ_CMDID) \
    OP(WMI_VDEV_OOB_CONNECTION_REQ_CMDID) \
    OP(WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID) \
    /* add new CMD_LIST elements above this line */


@@ -2269,6 +2272,7 @@ typedef enum {
    OP(WMI_MLO_LINK_STATE_SWITCH_EVENTID) \
    OP(WMI_VDEV_SCHED_MODE_PROBE_RESP_EVENTID) \
    OP(WMI_VDEV_OOB_CONNECTION_RESP_EVENTID) \
    OP(WMI_AUDIO_TRANSPORT_SWITCH_TYPE_EVENTID) \
    /* add new EVT_LIST elements above this line */


@@ -5402,6 +5406,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_PARAM_ENABLE_SR_PROHIBIT_CMDID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_xgap_enable_cmd_fixed_param, wmi_xgap_enable_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_XGAP_ENABLE_CMDID);

/* WMI cmd to indicate bearer switch response status (succcess, fail or timeout) to the corresponding switch type request */
#define WMITLV_TABLE_WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_audio_transport_switch_resp_status_cmd_fixed_param, wmi_audio_transport_switch_resp_status_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID);

#define WMITLV_TABLE_WMI_ODD_LIVEDUMP_REQUEST_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_livedump_request_cmd_fixed_param, wmi_livedump_request_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, odd_livedump_id_list, WMITLV_SIZE_VAR)
@@ -7400,6 +7409,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_HEALTH_MON_INIT_DONE_EVENTID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_xgap_enable_complete_event_fixed_param, wmi_xgap_enable_complete_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_XGAP_ENABLE_COMPLETE_EVENTID);

/* Event to switch to xpan to ble or ble to xpan */
#define WMITLV_TABLE_WMI_AUDIO_TRANSPORT_SWITCH_TYPE_EVENTID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_audio_transport_switch_type_event_fixed_param, wmi_audio_transport_switch_type_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_AUDIO_TRANSPORT_SWITCH_TYPE_EVENTID);

/* ODD Livedump */
#define  WMITLV_TABLE_WMI_ODD_LIVEDUMP_RESPONSE_EVENTID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_livedump_response_event_fixed_param, wmi_livedump_response_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
+36 −0
Original line number Diff line number Diff line
@@ -1245,6 +1245,9 @@ typedef enum {
    /* WMI comamnd for standalone sounding */
    WMI_VDEV_STANDALONE_SOUND_CMDID,
    /* WMI cmd used by host to send the switch response status to FW */
    WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID,
    /*  Offload 11k related requests */
    WMI_11K_OFFLOAD_REPORT_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_11K_OFFLOAD),
    /* invoke neighbor report from FW */
@@ -2248,6 +2251,9 @@ typedef enum {
    /* WMI standalone command complete Event */
    WMI_VDEV_STANDALONE_SOUND_COMPLETE_EVENTID,
    /* WMI evt to indicate switch type either to WLAN(XPAN) or non_WLAN(BLE) */
    WMI_AUDIO_TRANSPORT_SWITCH_TYPE_EVENTID,
    /* GPIO Event */
    WMI_GPIO_INPUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GPIO),
@@ -36983,6 +36989,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
        WMI_RETURN_STRING(WMI_CSA_EVENT_STATUS_INDICATION_CMDID);
        WMI_RETURN_STRING(WMI_VDEV_SCHED_MODE_PROBE_REQ_CMDID);
        WMI_RETURN_STRING(WMI_VDEV_OOB_CONNECTION_REQ_CMDID);
        WMI_RETURN_STRING(WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID);
    }
    return (A_UINT8 *) "Invalid WMI cmd";
@@ -47087,6 +47094,35 @@ typedef struct {
    A_UINT32 connect_resp_type;
} wmi_vdev_oob_connection_resp_event_fixed_param;
typedef enum {
    WMI_AUDIO_TRANSPORT_SWITCH_STATUS_FAIL = 0,
    WMI_AUDIO_TRANSPORT_SWITCH_STATUS_SUCCESS,
    WMI_AUDIO_TRANSPORT_SWITCH_STATUS_TIMEOUT,
} WMI_AUDIO_TRANSPORT_SWITCH_RESPONSE_STATUS;
typedef enum {
    WMI_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0,
    WMI_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1,
} WMI_AUDIO_TRANSPORT_SWITCH_TYPE;
typedef struct {
    /** TLV tag and len; tag equals
    * WMITLV_TAG_STRUC_wmi_audio_transport_switch_type_event_fixed_param */
    A_UINT32 tlv_header;
    /** This indicates whether FW is requesting for switch to WLAN(XPAN) or non-WLAN(BLE) */
    A_UINT32 switch_type;  /*see definition of WMI_AUDIO_TRANSPORT_SWITCH_TYPE */
} wmi_audio_transport_switch_type_event_fixed_param;
typedef struct {
    /** TLV tag and len; tag equals
    * WMITLV_TAG_STRUC_wmi_audio_transport_switch_resp_status_cmd_fixed_param */
    A_UINT32 tlv_header;
    /** This indicates whether switch response status is success, fail, timeout */
    A_UINT32 switch_response_status;  /* see definition of WMI_AUDIO_TRANSPORT_SWITCH_RESPONSE_STATUS */
    /** This indicates for which switch type (WLAN(XPAN) or non-WLAN(BLE)) the switch response status is intended to */
    A_UINT32 switch_type;  /* see definition of WMI_AUDIO_TRANSPORT_SWITCH_TYPE */
} wmi_audio_transport_switch_resp_status_cmd_fixed_param;
/* ADD NEW DEFS HERE */
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@
#define __WMI_VER_MINOR_    0
/** WMI revision number has to be incremented when there is a
 *  change that may or may not break compatibility. */
#define __WMI_REVISION_ 1406
#define __WMI_REVISION_ 1407

/** The Version Namespace should not be normally changed. Only
 *  host and firmware of the same WMI namespace will work