sound/soc/codecs/cs4341.c
Source file repositories/reference/linux-study-clean/sound/soc/codecs/cs4341.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/cs4341.c- Extension
.c- Size
- 8873 bytes
- Lines
- 353
- 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/i2c.hlinux/module.hlinux/of.hlinux/regmap.hlinux/spi/spi.hsound/pcm.hsound/pcm_params.hsound/soc.hsound/tlv.h
Detected Declarations
struct cs4341_privfunction cs4341_set_fmtfunction cs4341_hw_paramsfunction cs4341_mutefunction cs4341_probefunction cs4341_i2c_probefunction cs4341_reg_readablefunction cs4341_spi_probefunction cs4341_initfunction cs4341_exitmodule init cs4341_init
Annotated Snippet
module_init(cs4341_init);
static void __exit cs4341_exit(void)
{
#if IS_ENABLED(CONFIG_I2C)
i2c_del_driver(&cs4341_i2c_driver);
#endif
#if defined(CONFIG_SPI_MASTER)
spi_unregister_driver(&cs4341_spi_driver);
#endif
}
module_exit(cs4341_exit);
MODULE_AUTHOR("Alexander Shiyan <shc_work@mail.ru>");
MODULE_DESCRIPTION("Cirrus Logic CS4341 ALSA SoC Codec Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/i2c.h`, `linux/module.h`, `linux/of.h`, `linux/regmap.h`, `linux/spi/spi.h`, `sound/pcm.h`, `sound/pcm_params.h`, `sound/soc.h`.
- Detected declarations: `struct cs4341_priv`, `function cs4341_set_fmt`, `function cs4341_hw_params`, `function cs4341_mute`, `function cs4341_probe`, `function cs4341_i2c_probe`, `function cs4341_reg_readable`, `function cs4341_spi_probe`, `function cs4341_init`, `function cs4341_exit`.
- 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.