sound/soc/codecs/wm8510.c
Source file repositories/reference/linux-study-clean/sound/soc/codecs/wm8510.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/wm8510.c- Extension
.c- Size
- 19157 bytes
- Lines
- 722
- 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/mod_devicetable.hlinux/module.hlinux/moduleparam.hlinux/kernel.hlinux/init.hlinux/delay.hlinux/pm.hlinux/i2c.hlinux/spi/spi.hlinux/slab.hlinux/regmap.hsound/core.hsound/pcm.hsound/pcm_params.hsound/soc.hsound/initval.hwm8510.h
Detected Declarations
struct wm8510_privstruct pll_function wm8510_volatilefunction pll_factorsfunction wm8510_set_dai_pllfunction wm8510_set_dai_clkdivfunction wm8510_set_dai_fmtfunction wm8510_pcm_hw_paramsfunction wm8510_mutefunction wm8510_set_bias_levelfunction wm8510_probefunction wm8510_spi_probefunction wm8510_i2c_probefunction wm8510_modinitfunction wm8510_exitmodule init wm8510_modinit
Annotated Snippet
module_init(wm8510_modinit);
static void __exit wm8510_exit(void)
{
#if IS_ENABLED(CONFIG_I2C)
i2c_del_driver(&wm8510_i2c_driver);
#endif
#if defined(CONFIG_SPI_MASTER)
spi_unregister_driver(&wm8510_spi_driver);
#endif
}
module_exit(wm8510_exit);
MODULE_DESCRIPTION("ASoC WM8510 driver");
MODULE_AUTHOR("Liam Girdwood");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/mod_devicetable.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/kernel.h`, `linux/init.h`, `linux/delay.h`, `linux/pm.h`, `linux/i2c.h`.
- Detected declarations: `struct wm8510_priv`, `struct pll_`, `function wm8510_volatile`, `function pll_factors`, `function wm8510_set_dai_pll`, `function wm8510_set_dai_clkdiv`, `function wm8510_set_dai_fmt`, `function wm8510_pcm_hw_params`, `function wm8510_mute`, `function wm8510_set_bias_level`.
- 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.