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