sound/soc/codecs/da7218.h
Source file repositories/reference/linux-study-clean/sound/soc/codecs/da7218.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/da7218.h- Extension
.h- Size
- 48557 bytes
- Lines
- 1412
- 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
linux/regmap.hlinux/regulator/consumer.hsound/da7218.h
Detected Declarations
struct da7218_privenum da7218_biq_cfgenum da7218_clk_srcenum da7218_sys_clkenum da7218_dev_idenum da7218_supplies
Annotated Snippet
struct da7218_priv {
struct da7218_pdata *pdata;
struct regulator_bulk_data supplies[DA7218_NUM_SUPPLIES];
struct regmap *regmap;
int dev_id;
struct snd_soc_jack *jack;
int irq;
struct clk *mclk;
unsigned int mclk_rate;
bool hp_single_supply;
bool master;
u8 alc_en;
u8 in_filt_en;
u8 mic_lvl_det_en;
u8 biq_5stage_coeff[DA7218_OUT_1_BIQ_5STAGE_CFG_SIZE];
u8 stbiq_3stage_coeff[DA7218_SIDETONE_BIQ_3STAGE_CFG_SIZE];
};
/* HP detect control */
int da7218_hpldet(struct snd_soc_component *component, struct snd_soc_jack *jack);
#endif /* _DA7218_H */
Annotation
- Immediate include surface: `linux/regmap.h`, `linux/regulator/consumer.h`, `sound/da7218.h`.
- Detected declarations: `struct da7218_priv`, `enum da7218_biq_cfg`, `enum da7218_clk_src`, `enum da7218_sys_clk`, `enum da7218_dev_id`, `enum da7218_supplies`.
- 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.