1*5113495bSYour Name /*
2*5113495bSYour Name * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name *
4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name *
8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name */
16*5113495bSYour Name
17*5113495bSYour Name #include <wmi.h>
18*5113495bSYour Name #include <wmi_unified_priv.h>
19*5113495bSYour Name #include "wmi_unified_ll_sap_api.h"
20*5113495bSYour Name #include "wmi_unified_param.h"
21*5113495bSYour Name
wmi_unified_audio_transport_switch_resp_send(wmi_unified_t wmi_hdl,enum bearer_switch_req_type req_type,enum bearer_switch_status status)22*5113495bSYour Name QDF_STATUS wmi_unified_audio_transport_switch_resp_send(
23*5113495bSYour Name wmi_unified_t wmi_hdl,
24*5113495bSYour Name enum bearer_switch_req_type req_type,
25*5113495bSYour Name enum bearer_switch_status status)
26*5113495bSYour Name {
27*5113495bSYour Name if (wmi_hdl->ops->send_audio_transport_switch_resp)
28*5113495bSYour Name return wmi_hdl->ops->send_audio_transport_switch_resp(wmi_hdl,
29*5113495bSYour Name req_type,
30*5113495bSYour Name status);
31*5113495bSYour Name
32*5113495bSYour Name return QDF_STATUS_E_FAILURE;
33*5113495bSYour Name }
34*5113495bSYour Name
35*5113495bSYour Name QDF_STATUS
wmi_extract_audio_transport_switch_req_event(wmi_unified_t wmi_handle,uint8_t * event,uint32_t len,enum bearer_switch_req_type * req_type)36*5113495bSYour Name wmi_extract_audio_transport_switch_req_event(
37*5113495bSYour Name wmi_unified_t wmi_handle,
38*5113495bSYour Name uint8_t *event, uint32_t len,
39*5113495bSYour Name enum bearer_switch_req_type *req_type)
40*5113495bSYour Name {
41*5113495bSYour Name if (wmi_handle->ops->extract_audio_transport_switch_req_event)
42*5113495bSYour Name return wmi_handle->ops->extract_audio_transport_switch_req_event(
43*5113495bSYour Name wmi_handle, event, len, req_type);
44*5113495bSYour Name return QDF_STATUS_E_FAILURE;
45*5113495bSYour Name }
46*5113495bSYour Name
47