sound/soc/codecs/wm8995.c
Source file repositories/reference/linux-study-clean/sound/soc/codecs/wm8995.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/wm8995.c- Extension
.c- Size
- 62781 bytes
- Lines
- 2315
- 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/module.hlinux/moduleparam.hlinux/init.hlinux/delay.hlinux/pm.hlinux/i2c.hlinux/regmap.hlinux/spi/spi.hlinux/regulator/consumer.hlinux/slab.hsound/core.hsound/pcm.hsound/pcm_params.hsound/soc.hsound/soc-dapm.hsound/initval.hsound/tlv.hwm8995.h
Detected Declarations
struct fll_configstruct wm8995_privstruct fll_divfunction wm8995_update_class_wfunction check_clk_sysfunction wm8995_put_class_wfunction hp_supply_eventfunction dc_servo_cmdfunction hp_eventfunction configure_aif_clockfunction configure_clockfunction clk_sys_eventfunction wm8995_readablefunction wm8995_volatilefunction wm8995_aif_mutefunction wm8995_set_dai_fmtfunction wm8995_hw_paramsfunction wm8995_set_tristatefunction wm8995_get_fll_configfunction wm8995_set_fllfunction wm8995_set_dai_sysclkfunction wm8995_set_bias_levelfunction wm8995_probefunction wm8995_spi_probefunction wm8995_i2c_probefunction wm8995_modinitfunction wm8995_exitmodule init wm8995_modinit
Annotated Snippet
module_init(wm8995_modinit);
static void __exit wm8995_exit(void)
{
#if IS_ENABLED(CONFIG_I2C)
i2c_del_driver(&wm8995_i2c_driver);
#endif
#if defined(CONFIG_SPI_MASTER)
spi_unregister_driver(&wm8995_spi_driver);
#endif
}
module_exit(wm8995_exit);
MODULE_DESCRIPTION("ASoC WM8995 driver");
MODULE_AUTHOR("Dimitris Papastamos <dp@opensource.wolfsonmicro.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/init.h`, `linux/delay.h`, `linux/pm.h`, `linux/i2c.h`, `linux/regmap.h`, `linux/spi/spi.h`.
- Detected declarations: `struct fll_config`, `struct wm8995_priv`, `struct fll_div`, `function wm8995_update_class_w`, `function check_clk_sys`, `function wm8995_put_class_w`, `function hp_supply_event`, `function dc_servo_cmd`, `function hp_event`, `function configure_aif_clock`.
- 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.