sound/pci/cs5535audio/cs5535audio.c
Source file repositories/reference/linux-study-clean/sound/pci/cs5535audio/cs5535audio.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/cs5535audio/cs5535audio.c- Extension
.c- Size
- 8413 bytes
- Lines
- 358
- Domain
- Driver Families
- Bucket
- sound/pci
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/interrupt.hlinux/init.hlinux/pci.hlinux/slab.hlinux/module.hlinux/io.hsound/core.hsound/control.hsound/pcm.hsound/rawmidi.hsound/ac97_codec.hsound/initval.hsound/asoundef.hcs5535audio.h
Detected Declarations
function wait_till_cmd_ackedfunction snd_cs5535audio_codec_readfunction snd_cs5535audio_codec_writefunction snd_cs5535audio_ac97_codec_writefunction snd_cs5535audio_ac97_codec_readfunction snd_cs5535audio_mixerfunction process_bm0_irqfunction scoped_guardfunction process_bm1_irqfunction scoped_guardfunction snd_cs5535audio_interruptfunction snd_cs5535audio_freefunction snd_cs5535audio_createfunction __snd_cs5535audio_probefunction snd_cs5535audio_probe
Annotated Snippet
static struct pci_driver cs5535audio_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_cs5535audio_ids,
.probe = snd_cs5535audio_probe,
#ifdef CONFIG_PM_SLEEP
.driver = {
.pm = &snd_cs5535audio_pm,
},
#endif
};
module_pci_driver(cs5535audio_driver);
MODULE_AUTHOR("Jaya Kumar");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("CS5535 Audio");
Annotation
- Immediate include surface: `linux/delay.h`, `linux/interrupt.h`, `linux/init.h`, `linux/pci.h`, `linux/slab.h`, `linux/module.h`, `linux/io.h`, `sound/core.h`.
- Detected declarations: `function wait_till_cmd_acked`, `function snd_cs5535audio_codec_read`, `function snd_cs5535audio_codec_write`, `function snd_cs5535audio_ac97_codec_write`, `function snd_cs5535audio_ac97_codec_read`, `function snd_cs5535audio_mixer`, `function process_bm0_irq`, `function scoped_guard`, `function process_bm1_irq`, `function scoped_guard`.
- Atlas domain: Driver Families / sound/pci.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.