sound/soc/codecs/da7210.c
Source file repositories/reference/linux-study-clean/sound/soc/codecs/da7210.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/da7210.c- Extension
.c- Size
- 41300 bytes
- Lines
- 1365
- Domain
- Driver Families
- Bucket
- sound/soc
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/i2c.hlinux/spi/spi.hlinux/regmap.hlinux/slab.hlinux/module.hsound/pcm.hsound/pcm_params.hsound/soc.hsound/initval.hsound/tlv.h
Detected Declarations
struct pll_divstruct da7210_privenum clk_srcfunction da7210_put_alc_swfunction da7210_put_noise_sup_swfunction da7210_readable_registerfunction da7210_volatile_registerfunction da7210_hw_paramsfunction da7210_set_dai_fmtfunction da7210_mutefunction da7210_set_dai_sysclkfunction da7210_set_dai_pllfunction da7210_probefunction da7210_i2c_probefunction da7210_spi_probefunction da7210_modinitfunction da7210_exitmodule init da7210_modinit
Annotated Snippet
module_init(da7210_modinit);
static void __exit da7210_exit(void)
{
#if IS_ENABLED(CONFIG_I2C)
i2c_del_driver(&da7210_i2c_driver);
#endif
#if defined(CONFIG_SPI_MASTER)
spi_unregister_driver(&da7210_spi_driver);
#endif
}
module_exit(da7210_exit);
MODULE_DESCRIPTION("ASoC DA7210 driver");
MODULE_AUTHOR("David Chen, Kuninori Morimoto");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/i2c.h`, `linux/spi/spi.h`, `linux/regmap.h`, `linux/slab.h`, `linux/module.h`, `sound/pcm.h`, `sound/pcm_params.h`.
- Detected declarations: `struct pll_div`, `struct da7210_priv`, `enum clk_src`, `function da7210_put_alc_sw`, `function da7210_put_noise_sup_sw`, `function da7210_readable_register`, `function da7210_volatile_register`, `function da7210_hw_params`, `function da7210_set_dai_fmt`, `function da7210_mute`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: integration 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.