sound/soc/codecs/rt5665.h
Source file repositories/reference/linux-study-clean/sound/soc/codecs/rt5665.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/rt5665.h- Extension
.h- Size
- 71952 bytes
- Lines
- 2003
- 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
sound/rt5665.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __RT5665_H__
#define __RT5665_H__
#include <sound/rt5665.h>
#define DEVICE_ID 0x6451
/* Info */
#define RT5665_RESET 0x0000
#define RT5665_VENDOR_ID 0x00fd
#define RT5665_VENDOR_ID_1 0x00fe
#define RT5665_DEVICE_ID 0x00ff
/* I/O - Output */
#define RT5665_LOUT 0x0001
#define RT5665_HP_CTRL_1 0x0002
#define RT5665_HP_CTRL_2 0x0003
#define RT5665_MONO_OUT 0x0004
#define RT5665_HPL_GAIN 0x0005
#define RT5665_HPR_GAIN 0x0006
#define RT5665_MONO_GAIN 0x0007
/* I/O - Input */
#define RT5665_CAL_BST_CTRL 0x000a
#define RT5665_CBJ_BST_CTRL 0x000b
#define RT5665_IN1_IN2 0x000c
#define RT5665_IN3_IN4 0x000d
#define RT5665_INL1_INR1_VOL 0x000f
/* I/O - Speaker */
#define RT5665_EJD_CTRL_1 0x0010
#define RT5665_EJD_CTRL_2 0x0011
#define RT5665_EJD_CTRL_3 0x0012
#define RT5665_EJD_CTRL_4 0x0013
#define RT5665_EJD_CTRL_5 0x0014
#define RT5665_EJD_CTRL_6 0x0015
#define RT5665_EJD_CTRL_7 0x0016
/* I/O - ADC/DAC/DMIC */
#define RT5665_DAC2_CTRL 0x0017
#define RT5665_DAC2_DIG_VOL 0x0018
#define RT5665_DAC1_DIG_VOL 0x0019
#define RT5665_DAC3_DIG_VOL 0x001a
#define RT5665_DAC3_CTRL 0x001b
#define RT5665_STO1_ADC_DIG_VOL 0x001c
#define RT5665_MONO_ADC_DIG_VOL 0x001d
#define RT5665_STO2_ADC_DIG_VOL 0x001e
#define RT5665_STO1_ADC_BOOST 0x001f
#define RT5665_MONO_ADC_BOOST 0x0020
#define RT5665_STO2_ADC_BOOST 0x0021
#define RT5665_HP_IMP_GAIN_1 0x0022
#define RT5665_HP_IMP_GAIN_2 0x0023
/* Mixer - D-D */
#define RT5665_STO1_ADC_MIXER 0x0026
#define RT5665_MONO_ADC_MIXER 0x0027
#define RT5665_STO2_ADC_MIXER 0x0028
#define RT5665_AD_DA_MIXER 0x0029
#define RT5665_STO1_DAC_MIXER 0x002a
#define RT5665_MONO_DAC_MIXER 0x002b
#define RT5665_STO2_DAC_MIXER 0x002c
#define RT5665_A_DAC1_MUX 0x002d
#define RT5665_A_DAC2_MUX 0x002e
#define RT5665_DIG_INF2_DATA 0x002f
#define RT5665_DIG_INF3_DATA 0x0030
/* Mixer - PDM */
#define RT5665_PDM_OUT_CTRL 0x0031
#define RT5665_PDM_DATA_CTRL_1 0x0032
#define RT5665_PDM_DATA_CTRL_2 0x0033
#define RT5665_PDM_DATA_CTRL_3 0x0034
#define RT5665_PDM_DATA_CTRL_4 0x0035
/* Mixer - ADC */
#define RT5665_REC1_GAIN 0x003a
#define RT5665_REC1_L1_MIXER 0x003b
#define RT5665_REC1_L2_MIXER 0x003c
#define RT5665_REC1_R1_MIXER 0x003d
#define RT5665_REC1_R2_MIXER 0x003e
#define RT5665_REC2_GAIN 0x003f
#define RT5665_REC2_L1_MIXER 0x0040
#define RT5665_REC2_L2_MIXER 0x0041
#define RT5665_REC2_R1_MIXER 0x0042
#define RT5665_REC2_R2_MIXER 0x0043
#define RT5665_CAL_REC 0x0044
/* Mixer - DAC */
#define RT5665_ALC_BACK_GAIN 0x0049
#define RT5665_MONOMIX_GAIN 0x004a
#define RT5665_MONOMIX_IN_GAIN 0x004b
#define RT5665_OUT_L_GAIN 0x004d
#define RT5665_OUT_L_MIXER 0x004e
#define RT5665_OUT_R_GAIN 0x004f
#define RT5665_OUT_R_MIXER 0x0050
#define RT5665_LOUT_MIXER 0x0052
/* Power */
#define RT5665_PWR_DIG_1 0x0061
Annotation
- Immediate include surface: `sound/rt5665.h`.
- 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.