sound/pci/pcxhr/pcxhr.c
Source file repositories/reference/linux-study-clean/sound/pci/pcxhr/pcxhr.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/pcxhr/pcxhr.c- Extension
.c- Size
- 47480 bytes
- Lines
- 1651
- 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 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/interrupt.hlinux/slab.hlinux/pci.hlinux/dma-mapping.hlinux/delay.hlinux/module.hlinux/mutex.hsound/core.hsound/initval.hsound/info.hsound/control.hsound/pcm.hsound/pcm_params.hpcxhr.hpcxhr_mixer.hpcxhr_hwdep.hpcxhr_core.hpcxhr_mix22.h
Detected Declarations
struct board_parametersfunction pcxhr_pll_freq_registerfunction pcxhr_get_clock_regfunction pcxhr_sub_set_clockfunction pcxhr_set_clockfunction pcxhr_sub_get_external_clockfunction pcxhr_get_external_clockfunction pcxhr_set_stream_statefunction pcxhr_set_formatfunction pcxhr_update_r_bufferfunction pcxhr_pipe_sample_countfunction pcxhr_stream_scheduled_get_pipefunction pcxhr_start_linked_streamfunction pcxhr_triggerfunction snd_pcm_group_for_each_entryfunction pcxhr_hardware_timerfunction pcxhr_preparefunction pcxhr_hw_paramsfunction pcxhr_openfunction pcxhr_closefunction pcxhr_stream_pointerfunction pcxhr_create_pcmfunction pcxhr_chip_freefunction pcxhr_chip_dev_freefunction pcxhr_createfunction pcxhr_proc_infofunction pcxhr_proc_syncfunction pcxhr_proc_gpio_readfunction pcxhr_proc_gpo_writefunction pcxhr_proc_ltcfunction pcxhr_proc_initfunction pcxhr_freefunction pcxhr_probefunction pcxhr_remove
Annotated Snippet
static struct pci_driver pcxhr_driver = {
.name = KBUILD_MODNAME,
.id_table = pcxhr_ids,
.probe = pcxhr_probe,
.remove = pcxhr_remove,
};
module_pci_driver(pcxhr_driver);
Annotation
- Immediate include surface: `linux/init.h`, `linux/interrupt.h`, `linux/slab.h`, `linux/pci.h`, `linux/dma-mapping.h`, `linux/delay.h`, `linux/module.h`, `linux/mutex.h`.
- Detected declarations: `struct board_parameters`, `function pcxhr_pll_freq_register`, `function pcxhr_get_clock_reg`, `function pcxhr_sub_set_clock`, `function pcxhr_set_clock`, `function pcxhr_sub_get_external_clock`, `function pcxhr_get_external_clock`, `function pcxhr_set_stream_state`, `function pcxhr_set_format`, `function pcxhr_update_r_buffer`.
- Atlas domain: Driver Families / sound/pci.
- Implementation status: pattern implementation candidate.
- 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.