sound/usb/qcom/usb_audio_qmi_v01.c
Source file repositories/reference/linux-study-clean/sound/usb/qcom/usb_audio_qmi_v01.c
File Facts
- System
- Linux kernel
- Corpus path
sound/usb/qcom/usb_audio_qmi_v01.c- Extension
.c- Size
- 20914 bytes
- Lines
- 864
- Domain
- Driver Families
- Bucket
- sound/usb
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/soc/qcom/qmi.husb_audio_qmi_v01.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2022-2025 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/soc/qcom/qmi.h>
#include "usb_audio_qmi_v01.h"
static const 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, iova),
},
{
.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, dma),
},
{
.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 const 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,
Annotation
- Immediate include surface: `linux/soc/qcom/qmi.h`, `usb_audio_qmi_v01.h`.
- Atlas domain: Driver Families / sound/usb.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.