sound/soc/codecs/cs35l34.c
Source file repositories/reference/linux-study-clean/sound/soc/codecs/cs35l34.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/codecs/cs35l34.c- Extension
.c- Size
- 33759 bytes
- Lines
- 1218
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/kernel.hlinux/init.hlinux/delay.hlinux/i2c.hlinux/slab.hlinux/workqueue.hlinux/platform_device.hlinux/regulator/consumer.hlinux/regulator/machine.hlinux/pm_runtime.hlinux/of.hlinux/of_irq.hsound/core.hsound/pcm.hsound/pcm_params.hsound/soc.hsound/soc-dapm.hlinux/gpio/consumer.hsound/initval.hsound/tlv.hsound/cs35l34.hcs35l34.hcirrus_legacy.h
Detected Declarations
struct cs35l34_privatestruct cs35l34_mclk_divfunction cs35l34_volatile_registerfunction cs35l34_readable_registerfunction cs35l34_precious_registerfunction cs35l34_sdin_eventfunction cs35l34_set_tdm_slotfunction cs35l34_main_amp_eventfunction cs35l34_mclk_eventfunction cs35l34_get_mclk_coefffunction cs35l34_set_dai_fmtfunction cs35l34_pcm_hw_paramsfunction cs35l34_set_tristatefunction cs35l34_dai_set_sysclkfunction cs35l34_boost_inductorfunction cs35l34_probefunction cs35l34_handle_of_datafunction cs35l34_irq_threadfunction cs35l34_i2c_probefunction cs35l34_i2c_removefunction cs35l34_runtime_resumefunction cs35l34_runtime_suspendfunction cs35l34_modinitfunction cs35l34_exitmodule init cs35l34_modinit
Annotated Snippet
module_init(cs35l34_modinit);
static void __exit cs35l34_exit(void)
{
i2c_del_driver(&cs35l34_i2c_driver);
}
module_exit(cs35l34_exit);
MODULE_DESCRIPTION("ASoC CS35l34 driver");
MODULE_AUTHOR("Paul Handrigan, Cirrus Logic Inc, <Paul.Handrigan@cirrus.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/kernel.h`, `linux/init.h`, `linux/delay.h`, `linux/i2c.h`, `linux/slab.h`, `linux/workqueue.h`.
- Detected declarations: `struct cs35l34_private`, `struct cs35l34_mclk_div`, `function cs35l34_volatile_register`, `function cs35l34_readable_register`, `function cs35l34_precious_register`, `function cs35l34_sdin_event`, `function cs35l34_set_tdm_slot`, `function cs35l34_main_amp_event`, `function cs35l34_mclk_event`, `function cs35l34_get_mclk_coeff`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.