Quelle sdca_function.h
Sprache: C
|
|
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
* The MIPI SDCA specification is available for public downloads at
* https://www.mipi.org/mipi-sdca-v1-0-download
*
* Copyright(c) 2024 Intel Corporation
*/
#ifndef __SDCA_FUNCTION_H__
#define __SDCA_FUNCTION_H__
#include <linux/bits.h>
#include <linux/types.h>
#include <linux/hid.h>
struct device;
struct sdca_entity;
struct sdca_function_desc;
#define SDCA_NO_INTERRUPT -1
/*
* The addressing space for SDCA relies on 7 bits for Entities, so a
* maximum of 128 Entities per function can be represented.
*/
#define SDCA_MAX_ENTITY_COUNT 128
/*
* Sanity check on number of initialization writes, can be expanded if needed.
*/
#define SDCA_MAX_INIT_COUNT 2048
/*
* The Cluster IDs are 16-bit, so a maximum of 65535 Clusters per
* function can be represented, however limit this to a slightly
* more reasonable value. Can be expanded if needed.
*/
#define SDCA_MAX_CLUSTER_COUNT 256
/*
* Sanity check on number of channels per Cluster, can be expanded if needed.
*/
#define SDCA_MAX_CHANNEL_COUNT 32
/*
* Sanity check on number of PDE delays, can be expanded if needed.
*/
#define SDCA_MAX_DELAY_COUNT 256
/*
* Sanity check on size of affected controls data, can be expanded if needed.
*/
#define SDCA_MAX_AFFECTED_COUNT 2048
/**
* enum sdca_function_type - SDCA Function Type codes
* @SDCA_FUNCTION_TYPE_SMART_AMP: Amplifier with protection features.
* @SDCA_FUNCTION_TYPE_SIMPLE_AMP: Subset of SmartAmp.
* @SDCA_FUNCTION_TYPE_SMART_MIC: Smart microphone with acoustic triggers.
* @SDCA_FUNCTION_TYPE_SIMPLE_MIC: Subset of SmartMic.
* @SDCA_FUNCTION_TYPE_SPEAKER_MIC: Combination of SmartMic and SmartAmp.
* @SDCA_FUNCTION_TYPE_UAJ: 3.5mm Universal Audio jack.
* @SDCA_FUNCTION_TYPE_RJ: Retaskable jack.
* @SDCA_FUNCTION_TYPE_SIMPLE_JACK: Subset of UAJ.
* @SDCA_FUNCTION_TYPE_HID: Human Interface Device, for e.g. buttons.
* @SDCA_FUNCTION_TYPE_IMP_DEF: Implementation-defined function.
*
* SDCA Function Types from SDCA specification v1.0a Section 5.1.2
* all Function types not described are reserved.
*
* Note that SIMPLE_AMP, SIMPLE_MIC and SIMPLE_JACK Function Types
* are NOT defined in SDCA 1.0a, but they were defined in earlier
* drafts and are planned for 1.1.
*/
enum sdca_function_type {
SDCA_FUNCTION_TYPE_SMART_AMP = 0x01,
SDCA_FUNCTION_TYPE_SIMPLE_AMP = 0x02,
SDCA_FUNCTION_TYPE_SMART_MIC = 0x03,
SDCA_FUNCTION_TYPE_SIMPLE_MIC = 0x04,
SDCA_FUNCTION_TYPE_SPEAKER_MIC = 0x05,
SDCA_FUNCTION_TYPE_UAJ = 0x06,
SDCA_FUNCTION_TYPE_RJ = 0x07,
SDCA_FUNCTION_TYPE_SIMPLE_JACK = 0x08,
SDCA_FUNCTION_TYPE_HID = 0x0A,
SDCA_FUNCTION_TYPE_IMP_DEF = 0x1F,
};
/* Human-readable names used for kernel logs and Function device registration/bind */
#define SDCA_FUNCTION_TYPE_SMART_AMP_NAME "SmartAmp"
#define SDCA_FUNCTION_TYPE_SIMPLE_AMP_NAME "SimpleAmp"
#define SDCA_FUNCTION_TYPE_SMART_MIC_NAME "SmartMic"
#define SDCA_FUNCTION_TYPE_SIMPLE_MIC_NAME "SimpleMic"
#define SDCA_FUNCTION_TYPE_SPEAKER_MIC_NAME "SpeakerMic"
#define SDCA_FUNCTION_TYPE_UAJ_NAME "UAJ"
#define SDCA_FUNCTION_TYPE_RJ_NAME "RJ"
#define SDCA_FUNCTION_TYPE_SIMPLE_NAME "SimpleJack"
#define SDCA_FUNCTION_TYPE_HID_NAME "HID"
#define SDCA_FUNCTION_TYPE_IMP_DEF_NAME "ImplementationDefined"
/**
* struct sdca_init_write - a single initialization write
* @addr: Register address to be written
* @val: Single byte value to be written
*/
struct sdca_init_write {
u32 addr;
u8 val;
};
/**
* define SDCA_CTL_TYPE - create a unique identifier for an SDCA Control
* @ent: Entity Type code.
* @sel: Control Selector code.
*
* Sometimes there is a need to identify a type of Control, for example to
* determine what name the control should have. SDCA Selectors are reused
* across Entity types, as such it is necessary to combine both the Entity
* Type and the Control Selector to obtain a unique identifier.
*/
#define SDCA_CTL_TYPE(ent, sel) ((ent) << 8 | (sel))
/**
* define SDCA_CTL_TYPE_S - static version of SDCA_CTL_TYPE
* @ent: Entity name, for example IT, MFPU, etc. this string can be read
* from the last characters of the SDCA_ENTITY_TYPE_* macros.
* @sel: Control Selector name, for example MIC_BIAS, MUTE, etc. this
* string can be read from the last characters of the SDCA_CTL_*_*
* macros.
*
* Short hand to specific a Control type statically for example:
* SDCA_CTL_TYPE_S(IT, MIC_BIAS).
*/
#define SDCA_CTL_TYPE_S(ent, sel) SDCA_CTL_TYPE(SDCA_ENTITY_TYPE_##ent, \
SDCA_CTL_##ent##_##sel)
/**
* enum sdca_it_controls - SDCA Controls for Input Terminal
*
* Control Selectors for Input Terminal from SDCA specification v1.0
* section 6.2.1.3.
*/
enum sdca_it_controls {
SDCA_CTL_IT_MIC_BIAS = 0x03,
SDCA_CTL_IT_USAGE = 0x04,
SDCA_CTL_IT_LATENCY = 0x08,
SDCA_CTL_IT_CLUSTERINDEX = 0x10,
SDCA_CTL_IT_DATAPORT_SELECTOR = 0x11,
SDCA_CTL_IT_MATCHING_GUID = 0x12,
SDCA_CTL_IT_KEEP_ALIVE = 0x13,
SDCA_CTL_IT_NDAI_STREAM = 0x14,
SDCA_CTL_IT_NDAI_CATEGORY = 0x15,
SDCA_CTL_IT_NDAI_CODINGTYPE = 0x16,
SDCA_CTL_IT_NDAI_PACKETTYPE = 0x17,
};
/**
* enum sdca_ot_controls - SDCA Controls for Output Terminal
*
* Control Selectors for Output Terminal from SDCA specification v1.0
* section 6.2.2.3.
*/
enum sdca_ot_controls {
SDCA_CTL_OT_USAGE = 0x04,
SDCA_CTL_OT_LATENCY = 0x08,
SDCA_CTL_OT_DATAPORT_SELECTOR = 0x11,
SDCA_CTL_OT_MATCHING_GUID = 0x12,
SDCA_CTL_OT_KEEP_ALIVE = 0x13,
SDCA_CTL_OT_NDAI_STREAM = 0x14,
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
SDCA_CTL_OT_NDAI_CODINGTYPE = 0x16,
SDCA_CTL_OT_NDAI_PACKETTYPE = 0x17,
}
/**
*enum-ColumnUsage
*/
enum sdca_usage_range {
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
SDCA_USAGE_CBN = 1,
SDCA_USAGE_SAMPLE_RATE = 2,
SDCA_USAGE_SAMPLE_WIDTH = 3,
SDCA_USAGE_FULL_SCALE = 4,
SDCA_USAGE_NOISE_FLOOR = 5,
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 24
SDCA_USAGE_NCOLS = 7,
};
/**
* enum sdca_dataport_selector_range define SDCA_MAX_INIT_COUNT 2048
*/
enum sdca_dataport_selector_range {
SDCA_DATAPORT_SELECTOR_NCOLS = 16,
=4
};
/**
* enum sdca_mu_controls - * more reasonable value. Can be needed
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 64
* section 6.3.4.2.
*/
enum
SDCA_CTL_MU_MIXER S CombinationofSmartMicand .
SDCA_CTL_MU_LATENCY = 0x06,
};
/**
* enum sdca_su_controls - SDCA Controls for Selector Unit
*
* Control Selectors for Selector Unit from SDCA specification v1.0
*section63..3
*/
enum sdca_su_controls {
SDCA_CTL_SU_SELECTOR = 0x01,
* @SDCA_FUNCTION_TYPE_HIDDevice,fore..buttons
};
/**
*enum sdca_fu_controls Controlsfor Unit
*
* Control Selectors for Feature Unit from SDCA specification*
* section 6.3.2.3.
*/
enum sdca_fu_controls {
SDCA_CTL_FU_MUTE = 0x01,
SDCA_CTL_FU_CHANNEL_VOLUME = 0x02,
*allnotjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 49
SDCA_CTL_FU_BASS_BOOST = 0x09,
SDCA_CTL_FU_LOUDNESS = 0x0A,
SDCA_CTL_FU_GAIN = 0x0B,
0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
}
/**
* enum sdca_volume_range - Column definitions for Q7.8dB volumes/gains
*/
enum sdca_volume_range {
SDCA_VOLUME_LINEAR_MIN = 0,
SDCA_VOLUME_LINEAR_MAX = 1,
SDCA_VOLUME_LINEAR_STEP = 2,
SDCA_VOLUME_LINEAR_NCOLS = 3, java.lang.StringIndexOutOfBoundsException: Range [45, 43) out of bounds for length 57
};
/**
* defineSDCA_FUNCTION_TYPE_IMP_DEF_NAME ""
*
* Control Selectors for Extension Unit from SDCA specification v1.0
* section 6.3.10.3.
*/
java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 31
SDCA_CTL_XU_XU_ID = 0x07,
SDCA_CTL_XU_XU_VERSION = 0x08,
SDCA_CTL_XU_FDL_CURRENTOWNER = 0x10,
SDCA_CTL_XU_FDL_MESSAGEOFFSET = 0x12,
SDCA_CTL_XU_FDL_MESSAGELENGTH = 0x13,
SDCA_CTL_XU_FDL_STATUS = 0x14,
SDCA_CTL_XU_FDL_SET_INDEX = 0x15,
SDCA_CTL_XU_FDL_HOST_REQUEST = 0x16,
};
/**
* enum sdca_cs_controls - SDCA Controls for Clock Source
*
* Control Selectors for Clock Source from SDCA specification v1.0
* section 6.4.1.3.
*/
enum sdca_cs_controls {
SDCA_CTL_CS_CLOCK_VALID = 0x02,
java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 38
}
/**
* enum sdca_samplerateindex_range - Column definitions for SampleRateIndex
*/
enum sdca_samplerateindex_range {
SDCA_SAMPLERATEINDEX_INDEX = 0,
SDCA_SAMPLERATEINDEX_RATE = 1,
* from the last characters macros
};
/**
* enum sdca_cx_controls - SDCA Controls for Clock Selector
*
* Control Selectors for Clock Selector from SDCA specification v1.0
* section 6.4.2.3.
*/
enum sdca_cx_controls {
SDCA_CTL_CX_CLOCK_SELECT *IT .
};
/**
num java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 65
*
* Control Selectors for Power Domain Entity from SDCA specification
* v1.0 section 6.5.2.2.
*/
enum sdca_pde_controls {
SDCA_CTL_PDE_REQUESTED_PS = 0x01,
SDCA_CTL_PDE_ACTUAL_PS = 0x10,
};
/**
* enum sdca_requested_ps_range - Column definitions for Requested PS
*/
enum sdca_requested_ps_range {
SDCA_REQUESTED_PS_STATE = =0java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
x,
};
/** java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 60
* enum sdca_ge_controls - SDCA java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 2
*
* Control Selectors for Group Unit from SDCA specification v1.0
* section 6. =0,
*/
enum sdca_ge_controls{
Sjava.lang.StringIndexOutOfBoundsException: Range [28, 24) out of bounds for length 35
SDCA_CTL_GE_DETECTED_MODE =java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 38
};
/**
* enum sdca_selected_mode_range - Column definitions for Selected Mode
*/
enum sdca_selected_mode_range {
SDCA_SELECTED_MODE_INDEX = 0,
SDCA_SELECTED_MODE_TERM_TYPE = 1,
SDCA_SELECTED_MODE_NCOLS = 2,
};
/**
* enum sdca_detected_mode_values - Predefined GE Detected Mode values
*/
enum sdca_detected_mode_values {
SDCA_DETECTED_MODE_JACK_UNPLUGGED = 0,
K_UNKNOWN =1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
SDCA_DETECTED_MODE_DETECTION_IN_PROGRESS= 2
};
/**
* enum sdca_spe_controls - SDCA Controls for Security & Privacy Unit
};
* java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
* specification v1.0 Section 6.5.3.2.
*/
enum sdca_spe_controls {
SDCA_CTL_SPE_PRIVATE = 0x01,
SDCA_CTL_SPE_PRIVACY_POLICY = 0x02
= x03,
SDCA_CTL_SPE_PRIVACY_OWNER = 0x04,
SDCA_CTL_SPE_AUTHTX_CURRENTOWNER = 0x10,
*
SDCA_CTL_SPE_AUTHTX_MESSAGELENGTH=0x13,
SDCA_CTL_SPE_AUTHRX_CURRENTOWNER = 0x14,
=0,
SDCA_CTL_SPE_AUTHRX_MESSAGELENGTH = 0x17,/
};
/**
* enum sdca_cru_controls - java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 2
*
* Control Selectors for Channel Remapping Unit from SDCA
* specification v1.0 Section 6.3.1.3.
*/
enum 638.
SDCA_CTL_CRU_LATENCY *
SDCA_CTL_CRU_CLUSTERINDEX 0java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
}SDCA_CTL_SU_LATENCY = 0x02,
/**
* java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*
* Control Selectors for Up-Down Mixer Processing Unit from SDCA
*specification .0Section639..
*/
enum sdca_udmpu_controls {
SDCA_CTL_UDMPU_LATENCY = 0x06,
SDCA_CTL_UDMPU_CLUSTERINDEX = 0x10,
SDCA_CTL_UDMPU_ACOUSTIC_ENERGY_LEVEL_MONITOR */
SDCA_CTL_UDMPU_ULTRASOUND_LOOP_GAIN 0x12,
SDCA_CTL_UDMPU_OPAQUESET_0 =018,
0
S =0x07,
SDCA_CTL_UDMPU_OPAQUESET_3 = 0x1B,
SDCA_CTL_UDMPU_OPAQUESET_4 = 0x1C,
SDCA_CTL_UDMPU_OPAQUESET_5 = 0x1D,
SDCA_CTL_UDMPU_OPAQUESET_6 = 0x1E,
SDCA_CTL_UDMPU_OPAQUESET_7SDCA_CTL_FU_LOUDNESS x0Ajava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
SDCA_CTL_UDMPU_OPAQUESET_8;
SDCA_CTL_UDMPU_OPAQUESET_9 = 0x21,
* enum sdca_volume_rangeColumn definitionsfor Q78volumesgains
SDCA_CTL_UDMPU_OPAQUESET_11 = 0x23,
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 3
SDCA_CTL_UDMPU_OPAQUESET_13 x25,
java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 38
SDCA_CTL_UDMPU_OPAQUESET_16 enumsdca_xu_controls- SDCA ControlsforExtension Unit
SDCA_CTL_UDMPU_OPAQUESET_17 = 0x29,
SDCA_CTL_UDMPU_OPAQUESET_18 *Control forExtension UnitfromSDCAspecification v1.java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
SDCA_CTL_UDMPU_OPAQUESET_19 = 0x2B,
SDCA_CTL_UDMPU_OPAQUESET_20 =0x2C,
SDCA_CTL_UDMPU_OPAQUESET_21 = 0x2D,
SDCA_CTL_XU_BYPASS = 0x01,
SDCA_CTL_UDMPU_OPAQUESET_23 = 0x2F,
};
/**
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*Control Selectors forClock Source from SDCA specification v1.0
6.3.3.4.
*/
enum{
SDCA_CTL_MFPU_BYPASS = 0x01,
SDCA_CTL_MFPU_ALGORITHM_READY sdca_cs_controls {
SDCA_CTL_MFPU_ALGORITHM_ENABLE = 0x05,
SDCA_CTL_CS_CLOCK_VALID 0x02,
SDCA_CTL_MFPU_ALGORITHM_PREPARE = 0x09,
SDCA_CTL_MFPU_CLUSTERINDEX =0,
};
SDCA_CTL_MFPU_ULTRASOUND_LEVEL = 0x12,
SDCA_CTL_MFPU_AE_NUMBER = 0x13,
SDCA_CTL_MFPU_AE_CURRENTOWNER = 0x14,
SDCA_CTL_MFPU_AE_MESSAGEOFFSET = 0x16,
SDCA_CTL_MFPU_AE_MESSAGELENGTHsdca_samplerateindex_range {
};
/**
* sdca_smpu_controls - SDCA Controls for Smart Processing java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
*
* Control Selectors for Smart Mic Processing Unit from SDCA
* specification v1.0 Section 6.3.7.3.
*/
enumjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 25
Y 0x06,
SDCA_CTL_SMPU_TRIGGER_ENABLE = 0x10,
SDCA_CTL_SMPU_TRIGGER_STATUS = 0x11,
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
R_PREAMBLE x13
SDCA_CTL_SMPU_HIST_ERROR = 0x14,
= x15,
* Control Selectors for PowerEntity SDCA specification
SDCA_CTL_SMPU_HIST_CURRENTOWNER = 0x18,
SDCA_CTL_SMPU_HIST_MESSAGEOFFSET x1A
SDCA_CTL_SMPU_HIST_MESSAGELENGTH = 0x1B,
SDCA_CTL_SMPU_DTODTX_CURRENTOWNER = 0x1C,
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 24
SDCA_CTL_SMPU_DTODTX_MESSAGELENGTH =010
SDCA_CTL_SMPU_DTODRX_CURRENTOWNER =
java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [39, 35) out of bounds for length 44
};
/**
*
*
Unit
* specification v1.0 Section 6.3.6.3.
*/
enum sdca_sapu_controls {
SDCA_CTL_SAPU_LATENCY = 0x05,
=0x10,
SDCA_CTL_SAPU_PROTECTION_STATUS = 0x11,
SDCA_CTL_SAPU_OPAQUESETREQ_INDEX = 0x12,
SDCA_CTL_SAPU_DTODTX_CURRENTOWNER = 0x14,
SDCA_CTL_SAPU_DTODTX_MESSAGEOFFSET = 0x16 {
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 44
SDCA_CTL_SAPU_DTODRX_CURRENTOWNER java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
SDCA_CTL_SAPU_DTODRX_MESSAGEOFFSET = 0x1A,
SDCA_CTL_SAPU_DTODRX_MESSAGELENGTH = 0x1B,
};
/**
* enum sdca_ppu_controls*Control java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 68
*
* Control Selectors for Post Processing java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 3
* v1*enum java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 58
*/
*...2
SDCA_CTL_PPU_LATENCY
ER 0x10,
=0x10java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
,
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 39
};
/**
* enum sdca_tg_controls java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 70
*
* Control Selectors for Tone Generator from java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 11
544.
*/
enum sdca_tg_controls {
java.lang.StringIndexOutOfBoundsException: Range [46, 43) out of bounds for length 51
};
/**
-SDCAControls Entity
SDCA_CTL_ENTITY_0_FUNCTION_ACTION =0,
* Control SelectorsSDCA_CTL_ENTITY_0_DEVICE_MANUFACTURER_ID =xC
* 6.6.1. =0x2E,
*/
enum sdca_hide_controls {
SDCA_CTL_HIDE_HIDTX_CURRENTOWNER = 0x10,
SDCA_CTL_HIDE_HIDTX_MESSAGEOFFSET = 0x12,
SDCA_CTL_HIDE_HIDTX_MESSAGELENGTH = 0x13,
SDCA_CTL_HIDE_HIDRX_CURRENTOWNER = 0x14,
SDCA_CTL_HIDE_HIDRX_MESSAGEOFFSET = 0x16,
SDCA_CTL_HIDE_HIDRX_MESSAGELENGTH = 0x17,
};
/**
* enum sdca_entity0_controls - SDCA Controls for Entity 0
*
* Control Selectors for Entity 0 from SDCA specification v1.0 Section
* 6.7.1.1.
*/
enum sdca_entity0_controls {
SDCA_CTL_ENTITY_0_COMMIT_GROUP_MASK = 0x01,
SDCA_CTL_ENTITY_0_FUNCTION_SDCA_VERSION = 0x04,
SDCA_CTL_ENTITY_0_FUNCTION_TYPE = 0x05,
SDCA_CTL_ENTITY_0_FUNCTION_MANUFACTURER_ID = 0x06,
SDCA_CTL_ENTITY_0_FUNCTION_ID = 0x07,
SDCA_CTL_ENTITY_0_FUNCTION_VERSION = 0x08,
SDCA_CTL_ENTITY_0_FUNCTION_EXTENSION_ID = 0x09,
SDCA_CTL_ENTITY_0_FUNCTION_EXTENSION_VERSION = 0x0A,
SDCA_CTL_ENTITY_0_FUNCTION_STATUS = 0x10,
SDCA_CTL_ENTITY_0_FUNCTION_ACTION = 0x11,
SDCA_CTL_ENTITY_0_MATCHING_GUID = 0x12,
SDCA_CTL_ENTITY_0_DEVICE_MANUFACTURER_ID = 0x2C,
SDCA_CTL_ENTITY_0_DEVICE_PART_ID = 0x2D,
SDCA_CTL_ENTITY_0_DEVICE_VERSION = 0x2E,
SDCA_CTL_ENTITY_0_DEVICE_SDCA_VERSION = 0x2F,
/* Function Status Bits */
SDCA_CTL_ENTITY_0_DEVICE_NEWLY_ATTACHED = BIT(0),
SDCA_CTL_ENTITY_0_INTS_DISABLED_ABNORMALLY = BIT(1),
SDCA_CTL_ENTITY_0_STREAMING_STOPPED_ABNORMALLY = BIT(2),
SDCA_CTL_ENTITY_0_FUNCTION_FAULT = BIT(3),
SDCA_CTL_ENTITY_0_UMP_SEQUENCE_FAULT = BIT(4),
SDCA_CTL_ENTITY_0_FUNCTION_NEEDS_INITIALIZATION = BIT(5),
SDCA_CTL_ENTITY_0_FUNCTION_HAS_BEEN_RESET = BIT(6),
SDCA_CTL_ENTITY_0_FUNCTION_BUSY)
};
#SDCA_CTL_MIC_BIAS_NAME MicBias"SDCA_CTL_ENTITY_0_STREAMING_STOPPED_ABNORMALLY=BIT()
#define SDCA_CTL_USAGE_NAME Usage
#define = BIT(4,
=BIT5,
#define "Selector
#define SDCA_CTL_ENTITY_0_FUNCTION_BUSY = BIT()java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
#define SDCA_CTL_KEEP_ALIVE_NAME "djava.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 42
#define SDCA_CTL_DATAPORT_SELECTOR_NAME DSelector"
#efine " d Keep
djava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
"Packet"
##java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
#
E "hannel "define SDCA_CTL_SELECTOR_NAME "Selector"
AGC"
#efine efinejava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 55
ss
# java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
#define SDCA_CTL_GAIN_NAMEjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
## :Smart .
#@SDCA_FUNCTION_TYPE_UAJ 3defineSDCA_CTL_FDL_MESSAGELENGTH_NAME FDLMessageLength"
#define SDCA_CTL_FDL_CURRENTOWNER_NAME "FDL Owner"
" java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
#define SDCA_CTL_FDL_MESSAGELENGTH_NAME "FDL Message#java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 59
#define SDCA_CTL_FDL_STATUS_NAME "FDL define SDCA_CTL_REQUESTED_PS_NAME "Requested
define "
#define SDCA_CTL_FDL_HOST_REQUEST_NAME "FDL Host Requestdefinejava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 53
#define "Clock Valid"
#define SDCA_CTL_SAMPLERATEINDEX_NAME "Sample Rate Index"
#define SDCA_CTL_CLOCK_SELECT_NAME "Clock Select"
#SDCA_CTL_REQUESTED_PS_NAME "Requested PS"
#define define SDCA_CTL_PRIVACY_LOCKSTATE_NAME "Privacy Lockstate"java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 67
#define SDCA_CTL_AUTHRX_CURRENTOWNER_NAME AuthRXCurrent
SDCA_CTL_DETECTED_MODE_NAME D Mode
#define#define SDCA_CTL_AUTHRX_MESSAGELENGTH_NAME "uthRX Message "
"Privacy Policy"
#SDCA_CTL_ULTRASOUND_LOOP_GAIN_NAME "Loop Gain"
#define "rivacy Ownerjava.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
#define SDCA_CTL_AUTHTX_CURRENTOWNER_NAME "AuthTX Current Owner# Opaqueset 2
define java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 67
#define define SDCA_CTL_OPAQUESET_4_NAME "Opaqueset 4"
#define SDCA_CTL_AUTHRX_CURRENTOWNER_NAME "AuthRX Current Owner"
#java.lang.StringIndexOutOfBoundsException: Range [42, 7) out of bounds for length 67
#define SDCA_CTL_AUTHRX_MESSAGELENGTH_NAME #SDCA_CTL_OPAQUESET_7_NAME Opaqueset "
#define SDCA_CTL_ACOUSTIC_ENERGY_LEVEL_MONITOR_NAME "Acoustic Energy Level Monitor"
#define SDCA_CTL_ULTRASOUND_LOOP_GAIN_NAME "Ultrasound Loop Gain"
#define SDCA_CTL_OPAQUESET_0_NAME "Opaqueset 0"
#define SDCA_CTL_OPAQUESET_1_NAME "Opaqueset 1"
#define SDCA_CTL_OPAQUESET_2_NAME "Opaqueset 2"
#define SDCA_CTL_OPAQUESET_3_NAME O3"
#define SDCA_CTL_OPAQUESET_4_NAME "Opaqueset 4"
#define define SDCA_CTL_OPAQUESET_13_NAME "Opaqueset 13"
#define SDCA_CTL_OPAQUESET_6_NAME "Opaqueset 6"
#define SDCA_CTL_OPAQUESET_7_NAME "Opaqueset 7"
#define SDCA_CTL_OPAQUESET_8_NAME "Opaqueset 8"defineSDCA_CTL_OPAQUESET_15_NAME "Opaqueset "
#java.lang.StringIndexOutOfBoundsException: Range [33, 7) out of bounds for length 49
"Opaqueset 10"
#java.lang.StringIndexOutOfBoundsException: Range [34, 7) out of bounds for length 51
#define SDCA_CTL_OPAQUESET_12_NAME "Opaqueset 12"
define SDCA_CTL_OPAQUESET_13_NAME "Opaqueset 13"
#define SDCA_CTL_OPAQUESET_14_NAME "Opaqueset 14"
# SDCA_CTL_OPAQUESET_15_NAME "Opaqueset 15"
#define #define SDCA_CTL_OPAQUESET_21_NAME "Opaqueset "
#SDCA_CTL_OPAQUESET_17_NAME "Opaqueset "
#define #define SDCA_CTL_OPAQUESET_23_NAME "paqueset23
#define SDCA_CTL_OPAQUESET_19_NAME # Algorithm eady"
#define SDCA_CTL_OPAQUESET_20_NAME "Opaqueset 20"#define SDCA_CTL_ALGORITHM_ENABLE_NAME Algorithm Enable"
#define SDCA_CTL_OPAQUESET_21_NAME "Opaqueset 21"
#define SDCA_CTL_OPAQUESET_22_NAME "Opaqueset 22"
#define SDCA_CTL_OPAQUESET_23_NAME "Opaqueset 23"
# Algorithm Ready"
#define SDCA_CTL_ALGORITHM_ENABLE_NAME "Algorithm Enable"
define SDCA_CTL_ALGORITHM_PREPARE_NAME Algorithm "
#define define SDCA_CTL_AE_NUMBER_NAME "AE Number
#define "ltrasound Level"
# SDCA_CTL_AE_NUMBER_NAME"E Number"
##defineSDCA_CTL_HIST_BUFFER_MODE_NAME "HistBuffer "
#define SDCA_CTL_AE_MESSAGEOFFSET_NAME "AE Message Offset"
defineSDCA_CTL_AE_MESSAGELENGTH_NAME " Length"
#define SDCA_CTL_TRIGGER_ENABLE_NAME "Trigger Enable"
#define SDCA_CTL_TRIGGER_STATUS_NAME "Trigger Status"
#define SDCA_CTL_HIST_BUFFER_MODE_NAME "Hist Buffer Mode"
#define SDCA_CTL_HIST_BUFFER_PREAMBLE_NAME "Hist Buffer Preamble"
# "ist "
#define DCA_CTL_HIST_MESSAGEOFFSET_NAME "ist Message Offset"
#define SDCA_CTL_TRIGGER_READY_NAME "Trigger#efine Hist Length"
#define "Hist Current Owner"
#define SDCA_CTL_HIST_MESSAGEOFFSET_NAME "Hist Message Offset"
define SDCA_CTL_HIST_MESSAGELENGTH_NAME "Hist Message Length"
#define SDCA_CTL_DTODTX_CURRENTOWNER_NAME "DTODTX Current Owner"
define SDCA_CTL_DTODTX_MESSAGEOFFSET_NAME "DTODTX Message Offset"
#define SDCA_CTL_DTODTX_MESSAGELENGTH_NAME "DTODTX Message Length"
# SDCA_CTL_DTODRX_CURRENTOWNER_NAME DTODRX "
define "MessageOffset"
#define SDCA_CTL_DTODRX_MESSAGELENGTH_NAME "DTODRX Message Length"
#define SDCA_CTL_PROTECTION_MODE_NAME "Protection Mode"
#efine SDCA_CTL_PROTECTION_STATUS_NAME "rotection Status"
#define SDCA_CTL_OPAQUESETREQ_INDEX_NAME "Opaqueset Req Index"
#define SDCA_CTL_DTODTX_CURRENTOWNER_NAME DTODTX Current Owner"
#define SDCA_CTL_DTODTX_MESSAGEOFFSET_NAME "#defineSDCA_CTL_OPAQUESETREQ_INDEX_NAME " Req
#define SDCA_CTL_DTODTX_MESSAGELENGTH_NAME DTODTX Message
#efine SDCA_CTL_DTODTX_MESSAGEOFFSET_NAME " "
#efine SDCA_CTL_DTODRX_MESSAGEOFFSET_NAME "
java.lang.StringIndexOutOfBoundsException: Range [42, 7) out of bounds for length 67
#define SDCA_CTL_POSTURENUMBER_NAME "Posture #define SDCA_CTL_POSTURENUMBER_NAME "Posture Number"
#defineSDCA_CTL_POSTUREEXTENSION_NAME "osture Extension
#defineSDCA_CTL_HORIZONTALBALANCE_NAME "Horizontal Balance"
#define SDCA_CTL_VERTICALBALANCE_NAME "Vertical Balance"
#defineSDCA_CTL_TONE_DIVIDER_NAME "Tone Divider"
#define SDCA_CTL_HIDTX_CURRENTOWNER_NAME "HIDTX Current Owner"
#define SDCA_CTL_HIDTX_MESSAGEOFFSET_NAME "HIDTX Message Offset"
#SDCA_CTL_HIDTX_MESSAGELENGTH_NAME "Message "
#define SDCA_CTL_HIDRX_CURRENTOWNER_NAME# SDCA_CTL_HIDTX_MESSAGEOFFSET_NAME" MessageOffset"
# " Message Offset"
Lengthjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
#efine *
#define SDCA_CTL_FUNCTION_TYPE_NAME"FunctionType"
#define define SDCA_CTL_FUNCTION_MANUFACTURER_ID_NAME "Function Manufacturer ID"
#define define SDCA_CTL_FUNCTION_ID_NAME "unction "
#define Functiontypesnotarejava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
define SDCA_CTL_FUNCTION_VERSION_NAME "unctionVersion"
#define SDCA_CTL_FUNCTION_STATUS_NAME "unction Status"
#define SDCA_CTL_FUNCTION_EXTENSION_VERSION_NAME "Function Extension Version"
#define SDCA_CTL_FUNCTION_STATUS_NAME " *drafts and "DeviceManufacturerID
#define java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 3
#define SDCA_CTL_DEVICE_MANUFACTURER_ID_NAME "Device SDCA_CTL_DEVICE_VERSION_NAME " Version
java.lang.StringIndexOutOfBoundsException: Range [36, 7) out of bounds for length 55
# SDCA_CTL_DEVICE_VERSION_NAME "
# "Device Version"
/**
pe Control Data
*
* Data Types as described in the SDCA specification v1.0 section
..
/
enum sdca_control_datatype
SDCA_CTL_DATATYPE_ONEBIT,
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
SDCA_CTL_DATATYPE_SPEC_ENCODED_VALUE
SDCA_CTL_DATATYPE_Q7P8DB,
}
#define SDCA_FUNCTION_TYPE_SMART_ CA_CTL_DATATYPE_BCD,
,
SDCA_CTL_DATATYPE_BITINDEX,
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
,
};
/**
* enum
*
* Access modes as described modes as in the SDCAspecificationv1.0section
* 7.1.8java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
*/
enum =x0,
SDCA_ACCESS_MODE_RW x0
=0,
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 3
7.9
enumsdca_access_layer {
and the SDCA_ACCESS_LAYER_USER =<java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
*sdca_access_layer Control accesslayer
* Access}
* 7.1.9.
*/
enum sdca_access_layer {
SDCA_ACCESS_LAYER_USER = 1 << 0,
SDCA_ACCESS_LAYER_APPLICATION = 1 << 1,
SDCA_ACCESS_LAYER_CLASS = 1 << 2,
SDCA_ACCESS_LAYER_PLATFORM = 1 << 3,
SDCA_ACCESS_LAYER_DEVICE =
ESS_LAYER_EXTENSION =1< java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
};
/**
*struct sdca_control_rangeSDCA table
* @cols: Number of*@abel: Name fortheControl,from SDCA v1.,section 7...
@ows:Number of rows in the range table.
* @data: Array of values contained in the range table.
*/
truct
int java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
unsigned int java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 78
u32 *@: Control name,for example @ i.
};
/**
s of ofControl.
*@:for Control,from v1., * @label: Name for the Control, from SDCA Specification v1.0, section java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
* s:Identifier addressing.
* @nbits: Number theControlonly a .
* @values: Holds the Control value for constants and defaults.
*c:A showingthe Control NumberswithinControl,
* char*java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nt values;
* @type: Format of the data in the Control.cn_list
* @range: Buffer describing valid
* @mode:modeofthe .
bool;
* fbool java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
* @has_default: Indicates the
* @has_fixed: Indicates the Control only -SDCA Types
*/
struct sdca_control {
const char *label;
int sel;
int nbits;
int *values; /
64 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
int interrupt_position;
enumtype type;
struct sdca_control_range range;
enum sdca_access_mode java.lang.StringIndexOutOfBoundsException: Range [42, 29) out of bounds for length 51
u8 SDCA_CTL_IT_CLUSTERINDEX 0x10,
M = 0x190,
bool has_default SDCA_CTL_IT_NDAI_CATEGORYjava.lang.StringIndexOutOfBoundsException: Range [36, 33) out of bounds for length 43
bool has_fixed;
}
/**
* enum java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 19
*
* enum {
of SDCAE_PRIMARY_ULTRASOUND=x383,
*/
enum sdca_terminal_type java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
S = 0x14,
SDCA_TERM_TYPE_GENERIC =S 0x16,
SDCA_TERM_TYPE_ULTRASOUND = 0x180,
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
SDCA_TERM_TYPE_RAW_PDM_MIC = 0x182,
SDCA_TERM_TYPE_SPEECH = 0x183,
SDCA_USAGE_NUMBER =0
SDCA_TERM_TYPE_SECONDARY_PCM_MICSDCA_USAGE_SAMPLE_RATE = 2,
SDCA_TERM_TYPE_ACOUSTIC_CONTEXT_AWARENESS = 0x186,
=0java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
E_STREAM =0x188,
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 2
SDCA_TERM_TYPE_STREAMING_MIC = 0A,
SDCA_TERM_TYPE_OPTIMIZATION_STREAM = 0x190,
SDCA_TERM_TYPE_PDM_RENDER_STREAM = 0x191,
0java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
/* Table 78 - Transducer */
* enum sdca_mu_controls - SDCA
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 2
SDCA_TERM_TYPE_PRIMARY_FULL_RANGE_SPEAKER = 0x380,
SDCA_TERM_TYPE_PRIMARY_LFE_SPEAKER = 0x381,
SDCA_TERM_TYPE_PRIMARY_TWEETER_SPEAKER = 0x382,
= 0
SDCA_TERM_TYPE_SECONDARY_FULL_RANGE_SPEAKER 0x390java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
SDCA_TERM_TYPE_NDAI_USB =0612
SDCA_TERM_TYPE_NDAI_BLUETOOTH_MAIN = 0x614,
SDCA_TERM_TYPE_SECONDARY_ULTRASOUND_SPEAKER = 0x393,
SDCA_TERM_TYPE_TERTIARY_FULL_RANGE_SPEAKER = 0x3A0,
SDCA_TERM_TYPE_TERTIARY_LFE_SPEAKER =0x3A1,
SDCA_TERM_TYPE_TERTIARY_TWEETER_SPEAKER = 0x3A2,
SDCA_TERM_TYPE_TERTIARY_ULTRASOUND_SPEAKER= 0x3A3,
SDCA_TERM_TYPE_SPDIF = 0x605,
SDCA_TERM_TYPE_NDAI_DISPLAY_AUDIO = 0x610,
SDCA_TERM_TYPE_NDAI_USB = 0x612,
* section*section 6. java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 42
SDCA_TERM_TYPE_NDAI_BLUETOOTH_ALTERNATE = 0x615,
SDCA_TERM_TYPE_NDAI_BLUETOOTH_BOTH = 0x616,
SDCA_TERM_TYPE_LINEIN_STEREO = 0x680,
SDCA_TERM_TYPE_LINEIN_FRONT_LR = 0x681,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SDCA_TERM_TYPE_LINEIN_SURROUND_LR SDCA_CTL_MU_LATENCY 0x06java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [33, 30) out of bounds for length 41
SDCA_TERM_TYPE_LINEOUT_STEREO = 0x690,
SDCA_TERM_TYPE_LINEOUT_FRONT_LR = 0x691,
SDCA_TERM_TYPE_LINEOUT_CENTER_LFE = 0x692,
SDCA_TERM_TYPE_LINEOUT_SURROUND_LR = 0x693,
SDCA_TERM_TYPE_LINEOUT_REAR_LR = 0x694,
SDCA_TERM_TYPE_MIC_JACK = 0x6A0,
SDCA_TERM_TYPE_STEREO_JACK = 0x6B0,
SDCA_TERM_TYPE_FRONT_LR_JACK = 0x6B1,
SDCA_TERM_TYPE_CENTER_LFE_JACK = 0x6B2,
SDCA_TERM_TYPE_SURROUND_LR_JACK = 0x6B3,
SDCA_TERM_TYPE_REAR_LR_JACK = 0x6B4,
SDCA_TERM_TYPE_HEADPHONE_JACK = 0x6C0,
SDCA_TERM_TYPE_HEADSET_JACK = 0x6D0,
/* Table 79 - System */
SDCA_TERM_TYPE_SENSE_DATA = 0x280,
SDCA_TERM_TYPE_PRIVACY_SIGNALING = 0x741,
SDCA_TERM_TYPE_PRIVACY_INDICATORS = 0x747,
};
#define SDCA_TERM_TYPE_LINEIN_STEREO_NAME "LineIn Stereo"
#define SDCA_TERM_TYPE_LINEIN_FRONT_LR_NAME "LineIn Front-LR"
#define SDCA_TERM_TYPE_LINEIN_CENTER_LFE_NAME "LineIn Center-LFE"
#define SDCA_TERM_TYPE_LINEIN_SURROUND_LR_NAME "LineIn Surround-LR"
#define SDCA_TERM_TYPE_LINEIN_REAR_LR_NAME "LineIn Rear-LR"
#define SDCA_TERM_TYPE_LINEOUT_STEREO_NAME "LineOut Stereo"
#define SDCA_TERM_TYPE_LINEOUT_FRONT_LR_NAME "LineOut Front-LR"
#define SDCA_TERM_TYPE_LINEOUT_CENTER_LFE_NAME "LineOut Center-LFE"
#define SDCA_TERM_TYPE_LINEOUT_SURROUND_LR_NAME "LineOut Surround-LR"
#define SDCA_TERM_TYPE_LINEOUT_REAR_LR_NAME "LineOut Rear-LR"
#define SDCA_TERM_TYPE_MIC_JACK_NAME "Microphone"
#define SDCA_TERM_TYPE_STEREO_JACK_NAME "Speaker Stereo"
#define SDCA_TERM_TYPE_FRONT_LR_JACK_NAME "Speaker Front-LR"
#define SDCA_TERM_TYPE_CENTER_LFE_JACK_NAME "Speaker Center-LFE"
#define SDCA_TERM_TYPE_SURROUND_LR_JACK_NAME "Speaker Surround-LR"
#define SDCA_TERM_TYPE_REAR_LR_JACK_NAME "Speaker Rear-LR"
#define SDCA_TERM_TYPE_HEADPHONE_JACK_NAME "Headphone"
#define SDCA_TERM_TYPE_HEADSET_JACK_NAME "Headset"
/**
* enum sdca_connector_type - SDCA Connector Types
*
* Indicate the type of Connector that a Terminal Entity represents,
* see section 6.2.4 of the SDCA v1.0 specification.
*/
enum sdca_connector_type {
SDCA_CONN_TYPE_UNKNOWN = 0x00,
SDCA_CONN_TYPE_2P5MM_JACK = 0x01,
SDCA_CONN_TYPE_3P5MM_JACK = 0x02,
SDCA_CONN_TYPE_QUARTER_INCH_JACK = 0x03,
SDCA_CONN_TYPE_XLR = 0x05,
SDCA_CONN_TYPE_SPDIF_OPTICAL = 0x06,
SDCA_CONN_TYPE_RCA = 0x07,
SDCA_CONN_TYPE_DIN = 0x0E,
SDCA_CONN_TYPE_MINI_DIN = 0x0F,
SDCA_CONN_TYPE_EIAJ_OPTICAL = 0x13,
SDCA_CONN_TYPE_HDMI = 0x14,
SDCA_CONN_TYPE_DISPLAYPORT = 0x17,
SDCA_CONN_TYPE_LIGHTNING = 0x1B,
SDCA_CONN_TYPE_USB_C = 0x1E,
SDCA_CONN_TYPE_OTHER = 0xFF,
};
/**
* struct sdca_entity_iot - information specific to Input/Output Entities
* @clock: Pointer to the Entity providing this Terminal's clock.
* @type: Usage of the Terminal Entity.
* @connector: Physical Connector of the Terminal Entity.
*@:Physical numberTerminal.
* @num_transducer: Number of transducers attached to the Terminal Entity.
* @is_dataport: Boolean*/
*/
struct java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 24
struct sdca_entity *clock;
enum sdca_terminal_type type;
enum sdca_connector_type connector;
int reference;
int num_transducer;
bool is_dataport;
};
/**
* enum sdca_clock_type - SDCA Clock Types
*
* Indicate the synchronicity of an Clock Entity, see section 6.4.1.3
* of the SDCA v1.0 specification.
*/
enum sdca_clock_type {
SDCA_CLOCK_TYPE_EXTERNAL = 0x00,
SDCA_CLOCK_TYPE_INTERNAL_ASYNC = 0x01,
SDCA_CLOCK_TYPE_INTERNAL_SYNC = 0x02,
SDCA_CLOCK_TYPE_INTERNAL_SOURCE_SYNC = 0x03,
};
/**
* struct sdca_entity_cs - information specific to Clock Source Entities
* @type: Synchronicity of the Clock Source.
* m:The maximum in before the clock sstable.
*/
struct sdca_entity_cs {
enum sdca_clock_type ;
unsigned int max_delay;
};
/**
=00B,
*
* java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
*/
enumsdca_pde_power_state{
SDCA_PDE_PS0 = 0x0,
SDCA_PDE_PS1 = SDCA_TERM_TYPE_LINEOUT =0693,
S SDCA_VOLUME_LINEAR_MAX =,
SDCA_PDE_PS3 =java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 36
SDCA_PDE_PS4 SDCA_TERM_TYPE_FRONT_LR_JACK =x6B1,
};
/**
* struct sdca_pde_delay#efineSDCA_TERM_TYPE_LINEOUT_SURROUND_LR_NAME "-
* @from_ps: The power state#efine SDCA_TERM_TYPE_LINEOUT_REAR_LR_NAME "Rear-"
state being entered.
* @us: The delay in microseconds switching between the two states.
*/
struct sdca_pde_delay {
int from_ps;
int to_ps;
unsigned int us;
};
/**
*struct - information specific to Domain Entities
* @managed: Dynamically allocated array pointing to each Entity
* controlled by SDCA_SAMPLERATEINDEX_INDE =0
* @max_delaySDCA_SAMPLERATEINDEX_NCOLS =2,
* between java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 3
* @num_managed: Number of Entities controlled by this PDE*
ied state changes.
*/
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 3
sdca_entity **managed;
struct sdca_pde_delay *max_delay;
int
*see
;
/**
* enum sdca_entity_type - SDCA Entity java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 24
* @Entity from java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
l asan
S =0,
*@SDCA_ENTITY_TYPE_IT: Input Terminal.
* @SDCA_ENTITY_TYPE_OT: Output Terminal.
* SDCA_CONN_TYPE_XLR = 0java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
*SSelectorUnit.
E_FU: Feature java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
* :=0
: java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
;
* @java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 3
*@SDCA_ENTITY_TYPE_GE:Group.
* @SDCA_ENTITY_TYPE_SPE: Security & Privacy * @clock: Pointer to the Entity providing this Ter'clock.
* @SDCA_ENTITY_TYPE_CRU: Channel Remapping Unit *@ype:Usage the Terminal Entity.
* @SDCA_ENTITY_TYPE_UDMPU: Up-Down Mixer Processing Unit.
*@ java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 58
S ProcessingUnit.
* Sjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 53
* @java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 24
*
*
* SDCA Entity Types from SDCA java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 36
* all Entity Types not described int num_transducer;
*/
enum boolis_dataport
SDCA_ENTITY_TYPE_ENTITY_0 = 0x00,
SDCA_ENTITY_TYPE_IT = 0x02,
=003
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
SDCA_ENTITY_TYPE_SU = 0x06,
SDCA_ENTITY_TYPE_FU = 0x07,
SDCA_ENTITY_TYPE_XU = 0x0A,
SDCA_ENTITY_TYPE_CS = 0x0B,
SDCA_ENTITY_TYPE_CX =0,
=0,
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 31
SDCA_ENTITY_TYPE_SPE = 0x13,
SDCA_ENTITY_TYPE_CRU
SDCA_ENTITY_TYPE_UDMPU x21,
SDCA_ENTITY_TYPE_MFPU = 0x22,
SDCA_ENTITY_TYPE_SMPU =0x23,
SDCA_ENTITY_TYPE_SAPU = 0x24,
SDCA_ENTITY_TYPE_PPU = 0x25,
SDCA_ENTITY_TYPE_TG = 0x30,
DCA_ENTITY_TYPE_HIDE =031java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
};
/**
*struct -control in the controls list
* @id: Entity ID of the Control affected.
* @seljava.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
* @cn: Control Number of the Control affected.
* @val: Mode.
*/
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 24
int id;
int sel;
int cn;
int val;
}
/**
* struct sdca_ge_mode - mode entry in the affected controls list
* @controls: Dynamically allocated* section 65/
* @ sdca_pde_delay java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
*/
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 21
struct sdca_ge_control *controls;
int num_controls;
enum java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
};
/**
specific to Group Entities
*@kctl: controlpointer *
:Dynamically allocated ofModes and the Controls written
* in each mode.
* @num_modes: Number of Modes.
*/
structjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
struct snd_kcontrol_new *kctl;
struct sdca_ge_mode *modes;
intstructControl Selectorsfor Security Unit SDCA
}
/**
* struct sdca_entity_hide - information java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 2
* @hid: HID device sdca_entity_type codes
num_hidtx_ids:n HIDTx ID
* @num_hidrx_ids*specificationEntity structure
**is for Entity 0,to Entity0controls.
* @hidrx_ids: HIDRx Report ID
* @af_number_list: which * @SDCA_ENTITY_TYPE_IT: Input Terminal
this HIDE
* @hide_reside_function_num: indicating which Audio Function @DCA_ENTITY_TYPE_MU: Mixer Unit.
* within this Device
* time in microseconds allowed for the Device
* to change the ownership from Device to
*@id_report_desc:HID Report for HIDE Entity
* @hid_desc: HID * @SDCA_ENTITY_TYPE_CS:Clock .
/
struct
@ Multi-unctionProcessing Unitjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
unsigned int *hidtx_ids;
unsigned int *hidrx_ids;
int num_hidtx_ids;
int num_hidrx_ids;
unsignedint SDCA_MAX_FUNCTION_COUNT];
unsigned int hide_reside_function_num;
unsigned int max_delay;
unsigned char *hid_report_desc;
struct hid_descriptor hid_descn InterfaceDevice Typesnot are java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
};
/**
* struct sdca_entity - informationjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 31
* @label: String such as "OT 12".
* @id: Identifier used for addressing.
*@type:Type t Entity.
to Group Entity controlling this one, NULL if N/A.
* @sources: Dynamically allocated array pointing to each input Entity =0x0C,
* connected to this Entity.
* @controls SDCA_ENTITY_TYPE_GE =0x12
ofsources
*@num_controls:Number ofControls for the Entity.
* @iot: Input/Output Terminal specific Entity properties.
* @s:Clock .
* @pde: Power Domain Entity specific Entity properties.
* @ge: Group Entity specific Entity properties.
* @hide: HIDE Entity specific Entity properties.
*/
struct sdca_entity {
const char *label;
int id;
num type
struct sdca_entity *group;
struct sdca_entity **sources;
struct sdca_control *controls;
int num_controls;
union {
struct sdca_entity_iot iot;
struct sdca_entity_cs cs;
struct sdca_entity_pde pdejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
struct sdca_entity_ge ge;
struct sdca_entity_hideint id;
};
};
/**
* enum sdca_channel_purpose - SDCA Channel java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0
*
* Channel Purpose codes as described in the SDCA specification v1.0
* section 11.4.3.
*/
enum sdca_channel_purpose {
/* Table 210 - Purpose */
SDCA_CHAN_PURPOSE_GENERIC_AUDIO = 0x01,
SDCA_CHAN_PURPOSE_VOICE = 0x02,
SDCA_CHAN_PURPOSE_SPEECH int val;
SDCA_CHAN_PURPOSE_AMBIENT = 0x04,
SDCA_CHAN_PURPOSE_REFERENCE = 0x05,
SDCA_CHAN_PURPOSE_ULTRASOUND = 0x06,
SDCA_CHAN_PURPOSE_SENSE 0x08,
SDCA_CHAN_PURPOSE_SILENCE = 0xFE,
SDCA_CHAN_PURPOSE_NON_AUDIO =0FF
211-Amp */
PURPOSE_SENSE_V1 = 0x09,
SDCA_CHAN_PURPOSE_SENSE_V2 = 0x0A,
* @num_modes Number Modes.
SDCA_CHAN_PURPOSE_SENSE_V21_INTERLEAVED = 0x11,
SDCA_CHAN_PURPOSE_SENSE_V12_PACKED = 0x12,
SDCA_CHAN_PURPOSE_SENSE_V21_PACKED = 0x13,
SDCA_CHAN_PURPOSE_SENSE_V1212_INTERLEAVED = 0x14,
SDCA_CHAN_PURPOSE_SENSE_V2121_INTERLEAVED = 0x15,
SDCA_CHAN_PURPOSE_SENSE_V1122_INTERLEAVED = 0x16,
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 23
SDCA_CHAN_PURPOSE_SENSE_V1212_PACKED = 0x18,
SDCA_CHAN_PURPOSE_SENSE_V2121_PACKED = 0x19,
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
* structsdca_entity_hide -information to HIDE
};
/**
* enum sdca_channel_relationship - SDCA Channel Relationship code
*
* Channel Relationship codes as described in the SDCA specification
* v1.0 @af_number_list: which Audio Function Numbers within this Device are
*/
/* Table 206 - Streaming */
SDCA_CHAN_REL_UNDEFINED = 0x00,
SDCA_CHAN_REL_GENERIC_MONO enum sdca_spe_controls {
SDCA_CHAN_REL_GENERIC_LEFT = 0x02,
SDCA_CTL_SPE_PRIVATE = 0x01,
SDCA_CHAN_REL_GENERIC_TOP = 0x48java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
SDCA_CHAN_REL_GENERIC_BOTTOM = 0x49,
SDCA_CHAN_REL_CAPTURE_DIRECT = 0x4E,
SDCA_CHAN_REL_RENDER_DIRECT = 0,
SDCA_CHAN_REL_FRONT_LEFT = 00,
SDCA_CHAN_REL_FRONT_RIGHT =0java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
SDCA_CHAN_REL_FRONT_CENTER = 0x0D *@ HID forthe Entity
SDCA_CHAN_REL_SIDE_LEFT = 0x12,
struct hid_device *hid
_ACK_LEFT =0x16,
= x17,
SDCA_CHAN_REL_LOW_FREQUENCY_EFFECTS = SDCA_CTL_SPE_AUTHTX_MESSAGELENGTH = 0x13,
SDCA_CHAN_REL_SOUNDWIRE_MIC = 0x55,
unsigned [java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 43
* enum sdca_cru_controls nsignedint java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
SDCA_CHAN_REL_SENSE_TRANSDUCER_12u char *hid_report_desc;
SDCA_CHAN_REL_SENSE_TRANSDUCER_21* v10Section6..3.
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 3
SDCA_CHAN_REL_ECHOREF_1 = 0x71,
F_2 = 0java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
SDCA_CHAN_REL_ECHOREF_3 = 0x73,
DCA_CHAN_REL_ECHOREF_4 = 0x74,
= x75,
SDCA_CHAN_REL_ECHOREF_LFE_ALL = 0x76,
er *
SDCA_CHAN_REL_PRIMARY_TRANSDUCER s allocated arraypointing oeach input Entity
*connected to this Entity.
SDCA_CHAN_REL_TERTIARY_TRANSDUCER = 0x52,
SDCA_CHAN_REL_LOWER_LEFT_ALLTRANSDUCER = 0x60,
SDCA_CHAN_REL_LOWER_RIGHT_ALLTRANSDUCER 0x61,
SDCA_CHAN_REL_UPPER_LEFT_ALLTRANSDUCER = 0x62,
SDCA_CHAN_REL_UPPER_RIGHT_ALLTRANSDUCER = 0x63,
SDCA_CHAN_REL_LOWER_LEFT_PRIMARY = 0x64,
* @cs: ClockSource specific Entity properties.
DCA_CHAN_REL_UPPER_LEFT_PRIMARY = 0x66,
SDCA_CHAN_REL_UPPER_RIGHT_PRIMARY = 0x67,
SDCA_CHAN_REL_LOWER_LEFT_SECONDARY = 0x68,
,
x6As java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
SDCA_CHAN_REL_UPPER_RIGHT_SECONDARY java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 27
SDCA_CHAN_REL_LOWER_LEFT_TERTIARY *https:/.SDCA_CHAN_PURPOSE_VOICE 0,
=06,
SDCA_CHAN_REL_UPPER_LEFT_TERTIARYjava.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 3
SDCA_CHAN_REL_DERIVED_LOWER_LEFT_PRIMARY 0x94,
OWER_RIGHT_PRIMARY =0,
LEFT_PRIMARY=0x96,
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
= 0java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
* maximum of 128 Entities per functionbe java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 37
SDCA_CHAN_REL_DERIVED_UPPER_RIGHT_SECONDARY=0,
java.lang.StringIndexOutOfBoundsException: Range [39, 35) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 44
SDCA_CTL_UDMPU_OPAQUESET_9 =0,
=java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 44
SDCA_CTL_UDMPU_OPAQUESET_14
SDCA_CHAN_REL_DERIVED_MONO_TERTIARY = 0xAC,
/* Table 208 - Equipment */
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
SDCA_CHAN_REL_EQUIPMENT_COMBINED = 0x47java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 3
SDCA_CHAN_REL_EQUIPMENT_BOTTOM =049
=0A,
* enum sdca_mfpu_controls:Smart withacoustic .
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 23
enum sdca_channel_relationship * S:Combinationof and .
java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 49
/* Table 209 - Other */
SDCA_CHAN_REL_ARRAY = 0x04 * @DCA_FUNCTION_TYPE_RJ jack.
SDCA_CHAN_REL_MIC = 0x53,
*@:Human Interface Device, for e.g. java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 36
SDCA_CHAN_REL_SILENCED_MIC = 0x56 SDCA_CHAN_REL_CAPTURE_DIRECT 0java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
SDCA_CHAN_REL_MULTI_SOURCE_1 = 0x78,
* SDCAFunction rom Cjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
SDCA_CHAN_REL_MULTI_SOURCE_3 = 0x7A,
*
}
/**
struct are for ...
sdca_function_type {
java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 45
*semantic 0,,
elationshipof
dentify pjava.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 70
* Channel eg. * Channel eg. = 0x07,
*
struct sdca_channel {
int id;
enum sdca_channel_purpose purpose;
enum sdca_channel_relationship relationship;
};
/**
* SDCA_CHAN_REL_LOWER_LEFT_ALLTRANSDUCER=0java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
addressing
* num_channels java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 57
*@ Dynamically allocated array of
*/
struct sdca_cluster {
int id;
int num_channels;
struct sdca_channel *channels;
};
/**
* enum sdca_cluster_range - SDCA Range C,
*/
enum sdca_cluster_range {
SDCA_CLUSTER_BYTEINDEX = 0,
SDCA_CHAN_REL_DERIVED_
java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 27
};
/**
*java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 74
* @desc: Pointer to short descriptor SDCA_CHAN_REL_DERIVED_UPPER_RIGHT_SECONDARY=0x9B,
* @init_table: Pointer x,
* @entities: Dynamically allocated array of Entities.
allocated array of Clusters.
* @num_init_table: Number of initialization writes. =0
* @num_entities ofEntities in .
* @ Clusters in thisFunction
* @busy_max_delay: Maximum Function busy java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 39
* error should be reported.
*/
sjava.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 27
sdca_function_desc *desc;
struct *;
*entities;
struct sdca_cluster *clusters;
int num_init_tableY =0x04,
int num_entities;
num_clusters;
unsigned int busy_max_delay;
};
static inline u32 SDCA_CHAN_REL_MULTI_SOURCE_ =0java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
unsigned int col, unsignedjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 2
{
return range>[return range->data[(rowjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 46
}
static inline u32 SDCA_CTL_MFPU_AE_NUMBER 013java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
int search_col, int value, int result_col)* @relationshipIndicates ofjava.lang.StringIndexOutOfBoundsException: Range [53, 48) out of bounds for length 70
{
int n
for (};
if (sdca_range(range, e
return sdca_range(ange,result_col, ;
}
return 0;
}
int sdca_parse_function(struct device * i Identifier used for addressing.
structsdca_function_desc *desc,
struct sdca_function_data *function);
struct sdca_control *java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 3
* ControlSelectors for intnum_channels;;
const int sel);
struct sdca_control_range *sdca_control_find_range(struct device *dev,
struct java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
enum sdca_cluster_range SDCA_CTL_SMPU_TRIGGER_ENABLE ,
introws);
struct sdca_control_range *java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 44
struct sdca_entity *entity
SDCA_CTL_SMPU_HIST_CURRENTOWNER = 0x18java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 42
struct sdca_function_data *function,
const*@
endif
¤ Dauer der Verarbeitung: 0.75 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|