sound/soc/intel/atom/sst-atom-controls.h
Source file repositories/reference/linux-study-clean/sound/soc/intel/atom/sst-atom-controls.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/intel/atom/sst-atom-controls.h- Extension
.h- Size
- 27051 bytes
- Lines
- 876
- Domain
- Driver Families
- Bucket
- sound/soc
- 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
sound/soc.hsound/tlv.h
Detected Declarations
struct sst_destination_idstruct sst_dsp_headerstruct sst_cmd_genericstruct swm_input_idsstruct sst_cmd_set_swmstruct sst_cmd_set_media_pathstruct pcm_cfgstruct sst_cmd_set_speech_pathstruct gain_cellstruct sst_cmd_set_gain_dualstruct sst_cmd_set_paramsstruct sst_cmd_sba_vb_startstruct sst_cmd_sba_set_media_loop_mapstruct sst_cmd_tone_stopstruct sst_cmd_sba_hw_set_sspstruct sst_param_sba_ssp_slot_mapstruct sst_modulestruct sst_ssp_configstruct sst_ssp_cfgstruct sst_idsstruct sst_gain_mixer_controlstruct sst_gain_valuestruct sst_algo_controlstruct sst_enumenum sst_path_indexenum sst_swm_inputsenum sst_swm_outputsenum sst_ipc_msgenum sst_cmd_typeenum sst_taskenum sst_typeenum sst_flagenum sst_gain_indexenum sst_module_idenum sst_cmdenum sst_dsp_switchenum sst_path_switchenum sst_swm_stateenum sst_ssp_modeenum sst_ssp_pcm_modeenum sst_ssp_duplexenum sst_ssp_fs_frequencyenum sst_ssp_fs_polarityenum sst_ssp_protocolenum sst_ssp_port_idenum sst_gain_kcontrol_typeenum sst_algo_kcontrol_type
Annotated Snippet
struct sst_destination_id {
union sst_location_id {
struct {
u8 cell_nbr_idx; /* module index */
u8 path_id; /* pipe_id */
} __packed p; /* part */
u16 f; /* full */
} __packed location_id;
u16 module_id;
} __packed;
struct sst_dsp_header {
struct sst_destination_id dst;
u16 command_id;
u16 length;
} __packed;
/*
*
* Common Commands
*
*/
struct sst_cmd_generic {
struct sst_dsp_header header;
} __packed;
struct swm_input_ids {
struct sst_destination_id input_id;
} __packed;
struct sst_cmd_set_swm {
struct sst_dsp_header header;
struct sst_destination_id output_id;
u16 switch_state;
u16 nb_inputs;
struct swm_input_ids input[SST_CMD_SWM_MAX_INPUTS];
} __packed;
struct sst_cmd_set_media_path {
struct sst_dsp_header header;
u16 switch_state;
} __packed;
struct pcm_cfg {
u8 s_length:2;
u8 rate:3;
u8 format:3;
} __packed;
struct sst_cmd_set_speech_path {
struct sst_dsp_header header;
u16 switch_state;
struct {
u16 rsvd:8;
struct pcm_cfg cfg;
} config;
} __packed;
struct gain_cell {
struct sst_destination_id dest;
s16 cell_gain_left;
s16 cell_gain_right;
u16 gain_time_constant;
} __packed;
#define NUM_GAIN_CELLS 1
struct sst_cmd_set_gain_dual {
struct sst_dsp_header header;
u16 gain_cell_num;
struct gain_cell cell_gains[NUM_GAIN_CELLS];
} __packed;
struct sst_cmd_set_params {
struct sst_destination_id dst;
u16 command_id;
char params[];
} __packed;
struct sst_cmd_sba_vb_start {
struct sst_dsp_header header;
} __packed;
union sba_media_loop_params {
struct {
u16 rsvd:8;
struct pcm_cfg cfg;
} part;
u16 full;
} __packed;
struct sst_cmd_sba_set_media_loop_map {
Annotation
- Immediate include surface: `sound/soc.h`, `sound/tlv.h`.
- Detected declarations: `struct sst_destination_id`, `struct sst_dsp_header`, `struct sst_cmd_generic`, `struct swm_input_ids`, `struct sst_cmd_set_swm`, `struct sst_cmd_set_media_path`, `struct pcm_cfg`, `struct sst_cmd_set_speech_path`, `struct gain_cell`, `struct sst_cmd_set_gain_dual`.
- Atlas domain: Driver Families / sound/soc.
- 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.