sound/soc/codecs/wm8904.h
Source file repositories/reference/linux-study-clean/sound/soc/codecs/wm8904.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/wm8904.h- Extension
.h- Size
- 91655 bytes
- Lines
- 1591
- 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 _WM8904_H
#define _WM8904_H
#define WM8904_CLK_AUTO 0
#define WM8904_CLK_MCLK 1
#define WM8904_CLK_FLL 2
#define WM8904_FLL_MCLK 1
#define WM8904_FLL_BCLK 2
#define WM8904_FLL_LRCLK 3
#define WM8904_FLL_FREE_RUNNING 4
/*
* Register values.
*/
#define WM8904_SW_RESET_AND_ID 0x00
#define WM8904_REVISION 0x01
#define WM8904_BIAS_CONTROL_0 0x04
#define WM8904_VMID_CONTROL_0 0x05
#define WM8904_MIC_BIAS_CONTROL_0 0x06
#define WM8904_MIC_BIAS_CONTROL_1 0x07
#define WM8904_ANALOGUE_DAC_0 0x08
#define WM8904_MIC_FILTER_CONTROL 0x09
#define WM8904_ANALOGUE_ADC_0 0x0A
#define WM8904_POWER_MANAGEMENT_0 0x0C
#define WM8904_POWER_MANAGEMENT_2 0x0E
#define WM8904_POWER_MANAGEMENT_3 0x0F
#define WM8904_POWER_MANAGEMENT_6 0x12
#define WM8904_CLOCK_RATES_0 0x14
#define WM8904_CLOCK_RATES_1 0x15
#define WM8904_CLOCK_RATES_2 0x16
#define WM8904_AUDIO_INTERFACE_0 0x18
#define WM8904_AUDIO_INTERFACE_1 0x19
#define WM8904_AUDIO_INTERFACE_2 0x1A
#define WM8904_AUDIO_INTERFACE_3 0x1B
#define WM8904_DAC_DIGITAL_VOLUME_LEFT 0x1E
#define WM8904_DAC_DIGITAL_VOLUME_RIGHT 0x1F
#define WM8904_DAC_DIGITAL_0 0x20
#define WM8904_DAC_DIGITAL_1 0x21
#define WM8904_ADC_DIGITAL_VOLUME_LEFT 0x24
#define WM8904_ADC_DIGITAL_VOLUME_RIGHT 0x25
#define WM8904_ADC_DIGITAL_0 0x26
#define WM8904_DIGITAL_MICROPHONE_0 0x27
#define WM8904_DRC_0 0x28
#define WM8904_DRC_1 0x29
#define WM8904_DRC_2 0x2A
#define WM8904_DRC_3 0x2B
#define WM8904_ANALOGUE_LEFT_INPUT_0 0x2C
#define WM8904_ANALOGUE_RIGHT_INPUT_0 0x2D
#define WM8904_ANALOGUE_LEFT_INPUT_1 0x2E
#define WM8904_ANALOGUE_RIGHT_INPUT_1 0x2F
#define WM8904_ANALOGUE_OUT1_LEFT 0x39
#define WM8904_ANALOGUE_OUT1_RIGHT 0x3A
#define WM8904_ANALOGUE_OUT2_LEFT 0x3B
#define WM8904_ANALOGUE_OUT2_RIGHT 0x3C
#define WM8904_ANALOGUE_OUT12_ZC 0x3D
#define WM8904_DC_SERVO_0 0x43
#define WM8904_DC_SERVO_1 0x44
#define WM8904_DC_SERVO_2 0x45
#define WM8904_DC_SERVO_4 0x47
#define WM8904_DC_SERVO_5 0x48
#define WM8904_DC_SERVO_6 0x49
#define WM8904_DC_SERVO_7 0x4A
#define WM8904_DC_SERVO_8 0x4B
#define WM8904_DC_SERVO_9 0x4C
#define WM8904_DC_SERVO_READBACK_0 0x4D
#define WM8904_ANALOGUE_HP_0 0x5A
#define WM8904_ANALOGUE_LINEOUT_0 0x5E
#define WM8904_CHARGE_PUMP_0 0x62
#define WM8904_CLASS_W_0 0x68
#define WM8904_WRITE_SEQUENCER_0 0x6C
#define WM8904_WRITE_SEQUENCER_1 0x6D
#define WM8904_WRITE_SEQUENCER_2 0x6E
#define WM8904_WRITE_SEQUENCER_3 0x6F
#define WM8904_WRITE_SEQUENCER_4 0x70
#define WM8904_FLL_CONTROL_1 0x74
#define WM8904_FLL_CONTROL_2 0x75
#define WM8904_FLL_CONTROL_3 0x76
#define WM8904_FLL_CONTROL_4 0x77
#define WM8904_FLL_CONTROL_5 0x78
#define WM8904_GPIO_CONTROL_1 0x79
#define WM8904_GPIO_CONTROL_2 0x7A
#define WM8904_GPIO_CONTROL_3 0x7B
#define WM8904_GPIO_CONTROL_4 0x7C
#define WM8904_DIGITAL_PULLS 0x7E
#define WM8904_INTERRUPT_STATUS 0x7F
#define WM8904_INTERRUPT_STATUS_MASK 0x80
#define WM8904_INTERRUPT_POLARITY 0x81
#define WM8904_INTERRUPT_DEBOUNCE 0x82
#define WM8904_EQ1 0x86
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.