sound/soc/codecs/wm8990.h
Source file repositories/reference/linux-study-clean/sound/soc/codecs/wm8990.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/wm8990.h- Extension
.h- Size
- 35250 bytes
- Lines
- 822
- 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.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __WM8990REGISTERDEFS_H__
#define __WM8990REGISTERDEFS_H__
/*
* Register values.
*/
#define WM8990_RESET 0x00
#define WM8990_POWER_MANAGEMENT_1 0x01
#define WM8990_POWER_MANAGEMENT_2 0x02
#define WM8990_POWER_MANAGEMENT_3 0x03
#define WM8990_AUDIO_INTERFACE_1 0x04
#define WM8990_AUDIO_INTERFACE_2 0x05
#define WM8990_CLOCKING_1 0x06
#define WM8990_CLOCKING_2 0x07
#define WM8990_AUDIO_INTERFACE_3 0x08
#define WM8990_AUDIO_INTERFACE_4 0x09
#define WM8990_DAC_CTRL 0x0A
#define WM8990_LEFT_DAC_DIGITAL_VOLUME 0x0B
#define WM8990_RIGHT_DAC_DIGITAL_VOLUME 0x0C
#define WM8990_DIGITAL_SIDE_TONE 0x0D
#define WM8990_ADC_CTRL 0x0E
#define WM8990_LEFT_ADC_DIGITAL_VOLUME 0x0F
#define WM8990_RIGHT_ADC_DIGITAL_VOLUME 0x10
#define WM8990_GPIO_CTRL_1 0x12
#define WM8990_GPIO1_GPIO2 0x13
#define WM8990_GPIO3_GPIO4 0x14
#define WM8990_GPIO5_GPIO6 0x15
#define WM8990_GPIOCTRL_2 0x16
#define WM8990_GPIO_POL 0x17
#define WM8990_LEFT_LINE_INPUT_1_2_VOLUME 0x18
#define WM8990_LEFT_LINE_INPUT_3_4_VOLUME 0x19
#define WM8990_RIGHT_LINE_INPUT_1_2_VOLUME 0x1A
#define WM8990_RIGHT_LINE_INPUT_3_4_VOLUME 0x1B
#define WM8990_LEFT_OUTPUT_VOLUME 0x1C
#define WM8990_RIGHT_OUTPUT_VOLUME 0x1D
#define WM8990_LINE_OUTPUTS_VOLUME 0x1E
#define WM8990_OUT3_4_VOLUME 0x1F
#define WM8990_LEFT_OPGA_VOLUME 0x20
#define WM8990_RIGHT_OPGA_VOLUME 0x21
#define WM8990_SPEAKER_VOLUME 0x22
#define WM8990_CLASSD1 0x23
#define WM8990_CLASSD3 0x25
#define WM8990_CLASSD4 0x26
#define WM8990_INPUT_MIXER1 0x27
#define WM8990_INPUT_MIXER2 0x28
#define WM8990_INPUT_MIXER3 0x29
#define WM8990_INPUT_MIXER4 0x2A
#define WM8990_INPUT_MIXER5 0x2B
#define WM8990_INPUT_MIXER6 0x2C
#define WM8990_OUTPUT_MIXER1 0x2D
#define WM8990_OUTPUT_MIXER2 0x2E
#define WM8990_OUTPUT_MIXER3 0x2F
#define WM8990_OUTPUT_MIXER4 0x30
#define WM8990_OUTPUT_MIXER5 0x31
#define WM8990_OUTPUT_MIXER6 0x32
#define WM8990_OUT3_4_MIXER 0x33
#define WM8990_LINE_MIXER1 0x34
#define WM8990_LINE_MIXER2 0x35
#define WM8990_SPEAKER_MIXER 0x36
#define WM8990_ADDITIONAL_CONTROL 0x37
#define WM8990_ANTIPOP1 0x38
#define WM8990_ANTIPOP2 0x39
#define WM8990_MICBIAS 0x3A
#define WM8990_PLL1 0x3C
#define WM8990_PLL2 0x3D
#define WM8990_PLL3 0x3E
#define WM8990_EXT_ACCESS_ENA 0x75
#define WM8990_EXT_CTL1 0x7a
/*
* Field Definitions.
*/
/*
* R0 (0x00) - Reset
*/
#define WM8990_SW_RESET_CHIP_ID_MASK 0xFFFF /* SW_RESET_CHIP_ID */
/*
* R1 (0x01) - Power Management (1)
*/
#define WM8990_SPK_ENA 0x1000 /* SPK_ENA */
#define WM8990_SPK_ENA_BIT 12
#define WM8990_OUT3_ENA 0x0800 /* OUT3_ENA */
#define WM8990_OUT3_ENA_BIT 11
#define WM8990_OUT4_ENA 0x0400 /* OUT4_ENA */
#define WM8990_OUT4_ENA_BIT 10
#define WM8990_LOUT_ENA 0x0200 /* LOUT_ENA */
#define WM8990_LOUT_ENA_BIT 9
Annotation
- 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.