sound/pci/rme32.c
Source file repositories/reference/linux-study-clean/sound/pci/rme32.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/rme32.c- Extension
.c- Size
- 55153 bytes
- Lines
- 1878
- 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/gfp.hlinux/init.hlinux/interrupt.hlinux/pci.hlinux/module.hlinux/io.hsound/core.hsound/info.hsound/control.hsound/pcm.hsound/pcm_params.hsound/pcm-indirect.hsound/asoundef.hsound/initval.h
Detected Declarations
struct rme32function snd_rme32_pcm_byteptrfunction snd_rme32_playback_silencefunction snd_rme32_playback_copyfunction snd_rme32_capture_copyfunction snd_rme32_reset_dacfunction snd_rme32_playback_getratefunction snd_rme32_capture_getratefunction snd_rme32_playback_setratefunction snd_rme32_setclockmodefunction snd_rme32_getclockmodefunction snd_rme32_setinputtypefunction snd_rme32_getinputtypefunction snd_rme32_setframelogfunction snd_rme32_setformatfunction snd_rme32_playback_hw_paramsfunction snd_rme32_capture_hw_paramsfunction snd_rme32_pcm_startfunction snd_rme32_pcm_stopfunction snd_rme32_interruptfunction snd_rme32_set_buffer_constraintfunction snd_rme32_playback_spdif_openfunction scoped_guardfunction snd_rme32_capture_spdif_openfunction scoped_guardfunction snd_rme32_playback_adat_openfunction scoped_guardfunction snd_rme32_capture_adat_openfunction scoped_guardfunction snd_rme32_playback_closefunction scoped_guardfunction snd_rme32_capture_closefunction snd_rme32_playback_preparefunction snd_rme32_capture_preparefunction snd_rme32_pcm_triggerfunction snd_rme32_playback_pointerfunction snd_rme32_capture_pointerfunction snd_rme32_pb_trans_copyfunction snd_rme32_playback_fd_ackfunction snd_rme32_cp_trans_copyfunction snd_rme32_capture_fd_ackfunction snd_rme32_playback_fd_pointerfunction snd_rme32_capture_fd_pointerfunction snd_rme32_freefunction snd_rme32_free_spdif_pcmfunction snd_rme32_free_adat_pcmfunction snd_rme32_createfunction snd_rme32_proc_read
Annotated Snippet
static struct pci_driver rme32_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_rme32_ids,
.probe = snd_rme32_probe,
};
module_pci_driver(rme32_driver);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/gfp.h`, `linux/init.h`, `linux/interrupt.h`, `linux/pci.h`, `linux/module.h`, `linux/io.h`, `sound/core.h`.
- Detected declarations: `struct rme32`, `function snd_rme32_pcm_byteptr`, `function snd_rme32_playback_silence`, `function snd_rme32_playback_copy`, `function snd_rme32_capture_copy`, `function snd_rme32_reset_dac`, `function snd_rme32_playback_getrate`, `function snd_rme32_capture_getrate`, `function snd_rme32_playback_setrate`, `function snd_rme32_setclockmode`.
- 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.