sound/pci/rme9652/hdspm.c
Source file repositories/reference/linux-study-clean/sound/pci/rme9652/hdspm.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/rme9652/hdspm.c- Extension
.c- Size
- 186996 bytes
- Lines
- 6865
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/init.hlinux/delay.hlinux/interrupt.hlinux/module.hlinux/slab.hlinux/pci.hlinux/math64.hlinux/io.hlinux/nospec.hsound/core.hsound/control.hsound/pcm.hsound/pcm_params.hsound/info.hsound/asoundef.hsound/rawmidi.hsound/hwdep.hsound/initval.hsound/hdspm.h
Detected Declarations
struct hdspm_midistruct hdspm_tcostruct hdspmfunction HDSPM_bit2freqfunction hdspm_is_raydat_or_aiofunction hdspm_writefunction hdspm_readfunction hdspm_read_in_gainfunction hdspm_read_pb_gainfunction hdspm_write_in_gainfunction hdspm_write_pb_gainfunction snd_hdspm_enable_infunction snd_hdspm_enable_outfunction snd_hdspm_use_is_exclusivefunction hdspm_round_frequencyfunction valuesfunction hdspm_external_sample_ratefunction hdspm_get_latencyfunction hdspm_compute_period_sizefunction hdspm_hw_pointerfunction hdspm_start_audiofunction hdspm_stop_audiofunction hdspm_silence_playbackfunction hdspm_set_interrupt_intervalfunction hdspm_calc_dds_valuefunction hdspm_set_dds_valuefunction hdspm_set_ratefunction itfunction all_in_all_mixerfunction snd_hdspm_midi_read_bytefunction snd_hdspm_midi_write_bytefunction snd_hdspm_midi_input_availablefunction snd_hdspm_midi_output_possiblefunction snd_hdspm_flush_midi_inputfunction snd_hdspm_midi_output_writefunction snd_hdspm_midi_input_readfunction scoped_guardfunction scoped_guardfunction snd_hdspm_midi_input_triggerfunction snd_hdspm_midi_output_timerfunction snd_hdspm_midi_output_triggerfunction snd_hdspm_midi_input_openfunction snd_hdspm_midi_output_openfunction snd_hdspm_midi_input_closefunction snd_hdspm_midi_output_closefunction snd_hdspm_create_midifunction hdspm_midi_workfunction hdspm_get_pll_freq
Annotated Snippet
static struct pci_driver hdspm_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_hdspm_ids,
.probe = snd_hdspm_probe,
};
module_pci_driver(hdspm_driver);
Annotation
- Immediate include surface: `linux/init.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/module.h`, `linux/slab.h`, `linux/pci.h`, `linux/math64.h`, `linux/io.h`.
- Detected declarations: `struct hdspm_midi`, `struct hdspm_tco`, `struct hdspm`, `function HDSPM_bit2freq`, `function hdspm_is_raydat_or_aio`, `function hdspm_write`, `function hdspm_read`, `function hdspm_read_in_gain`, `function hdspm_read_pb_gain`, `function hdspm_write_in_gain`.
- Atlas domain: Driver Families / sound/pci.
- Implementation status: pattern implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.