mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "sound: usb: Add snapshot for usb audio qmi driver"
This commit is contained in:
commit
460b75a424
5 changed files with 2539 additions and 0 deletions
|
|
@ -167,5 +167,14 @@ config SND_BCD2000
|
|||
|
||||
source "sound/usb/line6/Kconfig"
|
||||
|
||||
config SND_USB_AUDIO_QMI
|
||||
tristate "USB Audio QMI Service driver"
|
||||
depends on QCOM_QMI_HELPERS && SND_USB_AUDIO
|
||||
help
|
||||
Starts USB Audio QMI server to communicate with remote entity
|
||||
to perform operations like enable or disable particular audio
|
||||
stream on a connected USB device, subsystem restart and
|
||||
device disconnect.
|
||||
|
||||
endif # SND_USB
|
||||
|
||||
|
|
|
|||
|
|
@ -33,3 +33,6 @@ obj-$(CONFIG_SND_USB_US122L) += snd-usbmidi-lib.o
|
|||
|
||||
obj-$(CONFIG_SND) += misc/ usx2y/ caiaq/ 6fire/ hiface/ bcd2000/
|
||||
obj-$(CONFIG_SND_USB_LINE6) += line6/
|
||||
|
||||
snd-usb-audio-qmi-objs := usb_audio_qmi_v01.o usb_audio_qmi_svc.o
|
||||
obj-$(CONFIG_SND_USB_AUDIO_QMI) += snd-usb-audio-qmi.o
|
||||
|
|
|
|||
1473
sound/usb/usb_audio_qmi_svc.c
Normal file
1473
sound/usb/usb_audio_qmi_svc.c
Normal file
File diff suppressed because it is too large
Load diff
892
sound/usb/usb_audio_qmi_v01.c
Normal file
892
sound/usb/usb_audio_qmi_v01.c
Normal file
|
|
@ -0,0 +1,892 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/soc/qcom/qmi.h>
|
||||
|
||||
#include "usb_audio_qmi_v01.h"
|
||||
|
||||
static struct qmi_elem_info mem_info_v01_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_8_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u64),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct mem_info_v01, va),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_8_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u64),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct mem_info_v01, pa),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct mem_info_v01, size),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
|
||||
static struct qmi_elem_info apps_mem_info_v01_ei[] = {
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct mem_info_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct apps_mem_info_v01, evt_ring),
|
||||
.ei_array = mem_info_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct mem_info_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct apps_mem_info_v01, tr_data),
|
||||
.ei_array = mem_info_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct mem_info_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct apps_mem_info_v01, tr_sync),
|
||||
.ei_array = mem_info_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct mem_info_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct apps_mem_info_v01, xfer_buff),
|
||||
.ei_array = mem_info_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct mem_info_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct apps_mem_info_v01, dcba),
|
||||
.ei_array = mem_info_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
|
||||
static struct qmi_elem_info usb_endpoint_descriptor_v01_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
bLength),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
bDescriptorType),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
bEndpointAddress),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
bmAttributes),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_2_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u16),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
wMaxPacketSize),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
bInterval),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
bRefresh),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_endpoint_descriptor_v01,
|
||||
bSynchAddress),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
|
||||
static struct qmi_elem_info usb_interface_descriptor_v01_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bLength),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bDescriptorType),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bInterfaceNumber),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bAlternateSetting),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bNumEndpoints),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bInterfaceClass),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bInterfaceSubClass),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
bInterfaceProtocol),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0,
|
||||
.offset = offsetof(struct usb_interface_descriptor_v01,
|
||||
iInterface),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
|
||||
struct qmi_elem_info qmi_uaudio_stream_req_msg_v01_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x01,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
enable),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x02,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
usb_token),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
audio_format_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
audio_format),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x11,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
number_of_ch_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x11,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
number_of_ch),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x12,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
bit_rate_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x12,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
bit_rate),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x13,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
xfer_buff_size_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x13,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
xfer_buff_size),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x14,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
service_interval_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x14,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_req_msg_v01,
|
||||
service_interval),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
|
||||
struct qmi_elem_info qmi_uaudio_stream_resp_msg_v01_ei[] = {
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct qmi_response_type_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x02,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
resp),
|
||||
.ei_array = qmi_response_type_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
status_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_SIGNED_4_BYTE_ENUM,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(enum usb_audio_stream_status_enum_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
status),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x11,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
internal_status_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x11,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
internal_status),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x12,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
slot_id_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x12,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
slot_id),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x13,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
usb_token_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x13,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
usb_token),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x14,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
std_as_opr_intf_desc_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct usb_interface_descriptor_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x14,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
std_as_opr_intf_desc),
|
||||
.ei_array = usb_interface_descriptor_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x15,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
std_as_data_ep_desc_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct usb_endpoint_descriptor_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x15,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
std_as_data_ep_desc),
|
||||
.ei_array = usb_endpoint_descriptor_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x16,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
std_as_sync_ep_desc_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct usb_endpoint_descriptor_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x16,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
std_as_sync_ep_desc),
|
||||
.ei_array = usb_endpoint_descriptor_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x17,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
usb_audio_spec_revision_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_2_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u16),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x17,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
usb_audio_spec_revision),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x18,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
data_path_delay_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x18,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
data_path_delay),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x19,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
usb_audio_subslot_size_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x19,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
usb_audio_subslot_size),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1A,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
xhci_mem_info_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct apps_mem_info_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1A,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
xhci_mem_info),
|
||||
.ei_array = apps_mem_info_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1B,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
interrupter_num_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1B,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
interrupter_num),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1C,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
speed_info_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_SIGNED_4_BYTE_ENUM,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(enum usb_audio_device_speed_enum_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1C,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
speed_info),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1D,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
controller_num_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x1D,
|
||||
.offset = offsetof(
|
||||
struct qmi_uaudio_stream_resp_msg_v01,
|
||||
controller_num),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
|
||||
struct qmi_elem_info qmi_uaudio_stream_ind_msg_v01_ei[] = {
|
||||
{
|
||||
.data_type = QMI_SIGNED_4_BYTE_ENUM,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(
|
||||
enum usb_audio_device_indication_enum_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x01,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
dev_event),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x02,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
slot_id),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
usb_token_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u32),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
usb_token),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x11,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
std_as_opr_intf_desc_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct usb_interface_descriptor_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x11,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
std_as_opr_intf_desc),
|
||||
.ei_array = usb_interface_descriptor_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x12,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
std_as_data_ep_desc_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct usb_endpoint_descriptor_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x12,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
std_as_data_ep_desc),
|
||||
.ei_array = usb_endpoint_descriptor_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x13,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
std_as_sync_ep_desc_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct usb_endpoint_descriptor_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x13,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
std_as_sync_ep_desc),
|
||||
.ei_array = usb_endpoint_descriptor_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x14,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
usb_audio_spec_revision_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_2_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u16),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x14,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
usb_audio_spec_revision),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x15,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
data_path_delay_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x15,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
data_path_delay),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x16,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
usb_audio_subslot_size_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x16,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
usb_audio_subslot_size),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x17,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
xhci_mem_info_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(struct apps_mem_info_v01),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x17,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
xhci_mem_info),
|
||||
.ei_array = apps_mem_info_v01_ei,
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x18,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
interrupter_num_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x18,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
interrupter_num),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x19,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
controller_num_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(u8),
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = 0x19,
|
||||
.offset = offsetof(struct qmi_uaudio_stream_ind_msg_v01,
|
||||
controller_num),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.array_type = NO_ARRAY,
|
||||
.tlv_type = QMI_COMMON_TLV_TYPE,
|
||||
},
|
||||
};
|
||||
162
sound/usb/usb_audio_qmi_v01.h
Normal file
162
sound/usb/usb_audio_qmi_v01.h
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef USB_QMI_V01_H
|
||||
#define USB_QMI_V01_H
|
||||
|
||||
#define UAUDIO_STREAM_SERVICE_ID_V01 0x41D
|
||||
#define UAUDIO_STREAM_SERVICE_VERS_V01 0x01
|
||||
|
||||
#define QMI_UAUDIO_STREAM_RESP_V01 0x0001
|
||||
#define QMI_UAUDIO_STREAM_REQ_V01 0x0001
|
||||
#define QMI_UAUDIO_STREAM_IND_V01 0x0001
|
||||
|
||||
|
||||
struct mem_info_v01 {
|
||||
u64 va;
|
||||
u64 pa;
|
||||
u32 size;
|
||||
};
|
||||
|
||||
struct apps_mem_info_v01 {
|
||||
struct mem_info_v01 evt_ring;
|
||||
struct mem_info_v01 tr_data;
|
||||
struct mem_info_v01 tr_sync;
|
||||
struct mem_info_v01 xfer_buff;
|
||||
struct mem_info_v01 dcba;
|
||||
};
|
||||
|
||||
struct usb_endpoint_descriptor_v01 {
|
||||
u8 bLength;
|
||||
u8 bDescriptorType;
|
||||
u8 bEndpointAddress;
|
||||
u8 bmAttributes;
|
||||
u16 wMaxPacketSize;
|
||||
u8 bInterval;
|
||||
u8 bRefresh;
|
||||
u8 bSynchAddress;
|
||||
};
|
||||
|
||||
struct usb_interface_descriptor_v01 {
|
||||
u8 bLength;
|
||||
u8 bDescriptorType;
|
||||
u8 bInterfaceNumber;
|
||||
u8 bAlternateSetting;
|
||||
u8 bNumEndpoints;
|
||||
u8 bInterfaceClass;
|
||||
u8 bInterfaceSubClass;
|
||||
u8 bInterfaceProtocol;
|
||||
u8 iInterface;
|
||||
};
|
||||
|
||||
enum usb_audio_stream_status_enum_v01 {
|
||||
USB_AUDIO_STREAM_STATUS_ENUM_MIN_VAL_V01 = INT_MIN,
|
||||
USB_AUDIO_STREAM_REQ_SUCCESS_V01 = 0,
|
||||
USB_AUDIO_STREAM_REQ_FAILURE_V01 = 1,
|
||||
USB_AUDIO_STREAM_REQ_FAILURE_NOT_FOUND_V01 = 2,
|
||||
USB_AUDIO_STREAM_REQ_FAILURE_INVALID_PARAM_V01 = 3,
|
||||
USB_AUDIO_STREAM_REQ_FAILURE_MEMALLOC_V01 = 4,
|
||||
USB_AUDIO_STREAM_STATUS_ENUM_MAX_VAL_V01 = INT_MAX,
|
||||
};
|
||||
|
||||
enum usb_audio_device_indication_enum_v01 {
|
||||
USB_AUDIO_DEVICE_INDICATION_ENUM_MIN_VAL_V01 = INT_MIN,
|
||||
USB_AUDIO_DEV_CONNECT_V01 = 0,
|
||||
USB_AUDIO_DEV_DISCONNECT_V01 = 1,
|
||||
USB_AUDIO_DEV_SUSPEND_V01 = 2,
|
||||
USB_AUDIO_DEV_RESUME_V01 = 3,
|
||||
USB_AUDIO_DEVICE_INDICATION_ENUM_MAX_VAL_V01 = INT_MAX,
|
||||
};
|
||||
|
||||
enum usb_audio_device_speed_enum_v01 {
|
||||
USB_AUDIO_DEVICE_SPEED_ENUM_MIN_VAL_V01 = INT_MIN,
|
||||
USB_AUDIO_DEVICE_SPEED_INVALID_V01 = 0,
|
||||
USB_AUDIO_DEVICE_SPEED_LOW_V01 = 1,
|
||||
USB_AUDIO_DEVICE_SPEED_FULL_V01 = 2,
|
||||
USB_AUDIO_DEVICE_SPEED_HIGH_V01 = 3,
|
||||
USB_AUDIO_DEVICE_SPEED_SUPER_V01 = 4,
|
||||
USB_AUDIO_DEVICE_SPEED_SUPER_PLUS_V01 = 5,
|
||||
USB_AUDIO_DEVICE_SPEED_ENUM_MAX_VAL_V01 = INT_MAX,
|
||||
};
|
||||
|
||||
struct qmi_uaudio_stream_req_msg_v01 {
|
||||
u8 enable;
|
||||
u32 usb_token;
|
||||
u8 audio_format_valid;
|
||||
u32 audio_format;
|
||||
u8 number_of_ch_valid;
|
||||
u32 number_of_ch;
|
||||
u8 bit_rate_valid;
|
||||
u32 bit_rate;
|
||||
u8 xfer_buff_size_valid;
|
||||
u32 xfer_buff_size;
|
||||
u8 service_interval_valid;
|
||||
u32 service_interval;
|
||||
};
|
||||
#define QMI_UAUDIO_STREAM_REQ_MSG_V01_MAX_MSG_LEN 46
|
||||
extern struct qmi_elem_info qmi_uaudio_stream_req_msg_v01_ei[];
|
||||
|
||||
struct qmi_uaudio_stream_resp_msg_v01 {
|
||||
struct qmi_response_type_v01 resp;
|
||||
u8 status_valid;
|
||||
enum usb_audio_stream_status_enum_v01 status;
|
||||
u8 internal_status_valid;
|
||||
u32 internal_status;
|
||||
u8 slot_id_valid;
|
||||
u32 slot_id;
|
||||
u8 usb_token_valid;
|
||||
u32 usb_token;
|
||||
u8 std_as_opr_intf_desc_valid;
|
||||
struct usb_interface_descriptor_v01 std_as_opr_intf_desc;
|
||||
u8 std_as_data_ep_desc_valid;
|
||||
struct usb_endpoint_descriptor_v01 std_as_data_ep_desc;
|
||||
u8 std_as_sync_ep_desc_valid;
|
||||
struct usb_endpoint_descriptor_v01 std_as_sync_ep_desc;
|
||||
u8 usb_audio_spec_revision_valid;
|
||||
u16 usb_audio_spec_revision;
|
||||
u8 data_path_delay_valid;
|
||||
u8 data_path_delay;
|
||||
u8 usb_audio_subslot_size_valid;
|
||||
u8 usb_audio_subslot_size;
|
||||
u8 xhci_mem_info_valid;
|
||||
struct apps_mem_info_v01 xhci_mem_info;
|
||||
u8 interrupter_num_valid;
|
||||
u8 interrupter_num;
|
||||
u8 speed_info_valid;
|
||||
enum usb_audio_device_speed_enum_v01 speed_info;
|
||||
u8 controller_num_valid;
|
||||
u8 controller_num;
|
||||
};
|
||||
#define QMI_UAUDIO_STREAM_RESP_MSG_V01_MAX_MSG_LEN 202
|
||||
extern struct qmi_elem_info qmi_uaudio_stream_resp_msg_v01_ei[];
|
||||
|
||||
struct qmi_uaudio_stream_ind_msg_v01 {
|
||||
enum usb_audio_device_indication_enum_v01 dev_event;
|
||||
u32 slot_id;
|
||||
u8 usb_token_valid;
|
||||
u32 usb_token;
|
||||
u8 std_as_opr_intf_desc_valid;
|
||||
struct usb_interface_descriptor_v01 std_as_opr_intf_desc;
|
||||
u8 std_as_data_ep_desc_valid;
|
||||
struct usb_endpoint_descriptor_v01 std_as_data_ep_desc;
|
||||
u8 std_as_sync_ep_desc_valid;
|
||||
struct usb_endpoint_descriptor_v01 std_as_sync_ep_desc;
|
||||
u8 usb_audio_spec_revision_valid;
|
||||
u16 usb_audio_spec_revision;
|
||||
u8 data_path_delay_valid;
|
||||
u8 data_path_delay;
|
||||
u8 usb_audio_subslot_size_valid;
|
||||
u8 usb_audio_subslot_size;
|
||||
u8 xhci_mem_info_valid;
|
||||
struct apps_mem_info_v01 xhci_mem_info;
|
||||
u8 interrupter_num_valid;
|
||||
u8 interrupter_num;
|
||||
u8 controller_num_valid;
|
||||
u8 controller_num;
|
||||
};
|
||||
#define QMI_UAUDIO_STREAM_IND_MSG_V01_MAX_MSG_LEN 181
|
||||
extern struct qmi_elem_info qmi_uaudio_stream_ind_msg_v01_ei[];
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue