sound/pci/rme96.c
Source file repositories/reference/linux-study-clean/sound/pci/rme96.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/rme96.c- Extension
.c- Size
- 69037 bytes
- Lines
- 2443
- 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.
- 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/delay.hlinux/init.hlinux/interrupt.hlinux/pci.hlinux/module.hlinux/vmalloc.hlinux/io.hsound/core.hsound/info.hsound/control.hsound/pcm.hsound/pcm_params.hsound/asoundef.hsound/initval.h
Detected Declarations
struct rme96function snd_rme96_playback_ptrfunction snd_rme96_capture_ptrfunction snd_rme96_playback_silencefunction snd_rme96_playback_copyfunction snd_rme96_capture_copyfunction handlefunction snd_rme96_apply_dac_volumefunction snd_rme96_reset_dacfunction snd_rme96_getmontracksfunction snd_rme96_setmontracksfunction snd_rme96_getattenuationfunction snd_rme96_setattenuationfunction snd_rme96_capture_getratefunction snd_rme96_playback_getratefunction snd_rme96_playback_setratefunction snd_rme96_capture_analog_setratefunction snd_rme96_setclockmodefunction snd_rme96_getclockmodefunction snd_rme96_setinputtypefunction snd_rme96_getinputtypefunction snd_rme96_setframelogfunction snd_rme96_playback_setformatfunction snd_rme96_capture_setformatfunction snd_rme96_set_period_propertiesfunction snd_rme96_playback_hw_paramsfunction scoped_guardfunction snd_rme96_capture_hw_paramsfunction snd_rme96_triggerfunction snd_rme96_interruptfunction rme96_set_buffer_size_constraintfunction snd_rme96_playback_spdif_openfunction snd_rme96_getinputtypefunction snd_rme96_capture_spdif_openfunction scoped_guardfunction snd_rme96_playback_adat_openfunction snd_rme96_getinputtypefunction snd_rme96_capture_adat_openfunction scoped_guardfunction snd_rme96_playback_closefunction scoped_guardfunction snd_rme96_capture_closefunction snd_rme96_playback_preparefunction snd_rme96_capture_preparefunction snd_rme96_playback_triggerfunction snd_pcm_group_for_each_entryfunction snd_rme96_capture_triggerfunction snd_pcm_group_for_each_entry
Annotated Snippet
static struct pci_driver rme96_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_rme96_ids,
.probe = snd_rme96_probe,
.driver = {
.pm = &rme96_pm,
},
};
module_pci_driver(rme96_driver);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/init.h`, `linux/interrupt.h`, `linux/pci.h`, `linux/module.h`, `linux/vmalloc.h`, `linux/io.h`, `sound/core.h`.
- Detected declarations: `struct rme96`, `function snd_rme96_playback_ptr`, `function snd_rme96_capture_ptr`, `function snd_rme96_playback_silence`, `function snd_rme96_playback_copy`, `function snd_rme96_capture_copy`, `function handle`, `function snd_rme96_apply_dac_volume`, `function snd_rme96_reset_dac`, `function snd_rme96_getmontracks`.
- 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.