sound/pci/rme9652/hdsp.c
Source file repositories/reference/linux-study-clean/sound/pci/rme9652/hdsp.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/rme9652/hdsp.c- Extension
.c- Size
- 149694 bytes
- Lines
- 5376
- 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/pci.hlinux/firmware.hlinux/module.hlinux/math64.hlinux/vmalloc.hlinux/io.hlinux/nospec.hsound/core.hsound/control.hsound/pcm.hsound/info.hsound/asoundef.hsound/rawmidi.hsound/hwdep.hsound/initval.hsound/hdsp.hasm/byteorder.hasm/current.h
Detected Declarations
struct hdsp_9632_metersstruct hdsp_midistruct hdspfunction snd_hammerfall_get_bufferfunction hdsp_playback_to_output_keyfunction hdsp_input_to_output_keyfunction hdsp_writefunction hdsp_readfunction hdsp_check_for_ioboxfunction hdsp_wait_for_ioboxfunction snd_hdsp_load_firmware_from_cachefunction hdsp_get_iobox_versionfunction hdsp_check_for_firmwarefunction hdsp_fifo_waitfunction hdsp_read_gainfunction hdsp_write_gainfunction snd_hdsp_use_is_exclusivefunction hdsp_spdif_sample_ratefunction hdsp_external_sample_ratefunction hdsp_compute_period_sizefunction hdsp_hw_pointerfunction hdsp_reset_hw_pointerfunction hdsp_start_audiofunction hdsp_stop_audiofunction hdsp_silence_playbackfunction hdsp_set_interrupt_intervalfunction hdsp_set_dds_valuefunction hdsp_set_ratefunction itfunction snd_hdsp_midi_read_bytefunction snd_hdsp_midi_write_bytefunction snd_hdsp_midi_input_availablefunction snd_hdsp_midi_output_possiblefunction snd_hdsp_flush_midi_inputfunction snd_hdsp_midi_output_writefunction snd_hdsp_midi_input_readfunction scoped_guardfunction snd_hdsp_midi_input_triggerfunction snd_hdsp_midi_output_timerfunction snd_hdsp_midi_output_triggerfunction snd_hdsp_midi_input_openfunction snd_hdsp_midi_output_openfunction snd_hdsp_midi_input_closefunction snd_hdsp_midi_output_closefunction snd_hdsp_create_midifunction snd_hdsp_convert_from_aesfunction snd_hdsp_convert_to_aesfunction snd_hdsp_control_spdif_info
Annotated Snippet
static struct pci_driver hdsp_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_hdsp_ids,
.probe = snd_hdsp_probe,
};
module_pci_driver(hdsp_driver);
Annotation
- Immediate include surface: `linux/init.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/pci.h`, `linux/firmware.h`, `linux/module.h`, `linux/math64.h`, `linux/vmalloc.h`.
- Detected declarations: `struct hdsp_9632_meters`, `struct hdsp_midi`, `struct hdsp`, `function snd_hammerfall_get_buffer`, `function hdsp_playback_to_output_key`, `function hdsp_input_to_output_key`, `function hdsp_write`, `function hdsp_read`, `function hdsp_check_for_iobox`, `function hdsp_wait_for_iobox`.
- 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.