sound/pci/sonicvibes.c
Source file repositories/reference/linux-study-clean/sound/pci/sonicvibes.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/sonicvibes.c- Extension
.c- Size
- 49040 bytes
- Lines
- 1450
- 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/init.hlinux/interrupt.hlinux/pci.hlinux/slab.hlinux/gameport.hlinux/module.hlinux/dma-mapping.hlinux/io.hsound/core.hsound/pcm.hsound/info.hsound/control.hsound/mpu401.hsound/opl3.hsound/initval.h
Detected Declarations
struct sonicvibesfunction snd_sonicvibes_setdmaafunction snd_sonicvibes_setdmacfunction snd_sonicvibes_getdmaafunction snd_sonicvibes_getdmacfunction snd_sonicvibes_out1function snd_sonicvibes_outfunction snd_sonicvibes_in1function snd_sonicvibes_infunction snd_sonicvibes_debugfunction snd_sonicvibes_setfmtfunction snd_sonicvibes_pllfunction snd_sonicvibes_setpllfunction snd_sonicvibes_set_adc_ratefunction snd_sonicvibes_hw_constraint_dac_ratefunction snd_sonicvibes_set_dac_ratefunction snd_sonicvibes_triggerfunction snd_sonicvibes_interruptfunction scoped_guardfunction snd_sonicvibes_playback_triggerfunction snd_sonicvibes_capture_triggerfunction snd_sonicvibes_playback_preparefunction snd_sonicvibes_capture_preparefunction snd_sonicvibes_playback_pointerfunction snd_sonicvibes_capture_pointerfunction snd_sonicvibes_playback_openfunction snd_sonicvibes_capture_openfunction snd_sonicvibes_playback_closefunction snd_sonicvibes_capture_closefunction snd_sonicvibes_pcmfunction snd_sonicvibes_info_muxfunction snd_sonicvibes_get_muxfunction snd_sonicvibes_put_muxfunction snd_sonicvibes_info_singlefunction snd_sonicvibes_get_singlefunction snd_sonicvibes_put_singlefunction snd_sonicvibes_info_doublefunction snd_sonicvibes_get_doublefunction snd_sonicvibes_put_doublefunction snd_sonicvibes_master_freefunction snd_sonicvibes_mixerfunction snd_sonicvibes_proc_readfunction snd_sonicvibes_proc_initfunction snd_sonicvibes_create_gameportfunction snd_sonicvibes_free_gameportfunction snd_sonicvibes_create_gameportfunction snd_sonicvibes_free_gameportfunction snd_sonicvibes_create
Annotated Snippet
static struct pci_driver sonicvibes_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_sonic_ids,
.probe = snd_sonic_probe,
};
module_pci_driver(sonicvibes_driver);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/init.h`, `linux/interrupt.h`, `linux/pci.h`, `linux/slab.h`, `linux/gameport.h`, `linux/module.h`, `linux/dma-mapping.h`.
- Detected declarations: `struct sonicvibes`, `function snd_sonicvibes_setdmaa`, `function snd_sonicvibes_setdmac`, `function snd_sonicvibes_getdmaa`, `function snd_sonicvibes_getdmac`, `function snd_sonicvibes_out1`, `function snd_sonicvibes_out`, `function snd_sonicvibes_in1`, `function snd_sonicvibes_in`, `function snd_sonicvibes_debug`.
- 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.