drivers/media/pci/cx88/cx88-alsa.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx88/cx88-alsa.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx88/cx88-alsa.c- Extension
.c- Size
- 23786 bytes
- Lines
- 1010
- Domain
- Driver Families
- Bucket
- drivers/media
- 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
cx88.hcx88-reg.hlinux/module.hlinux/init.hlinux/delay.hlinux/device.hlinux/interrupt.hlinux/vmalloc.hlinux/dma-mapping.hlinux/pci.hlinux/slab.hsound/core.hsound/pcm.hsound/pcm_params.hsound/control.hsound/initval.hsound/tlv.hmedia/i2c/wm8775.h
Detected Declarations
struct cx88_audio_bufferstruct cx88_audio_devfunction _cx88_start_audio_dmafunction _cx88_stop_audio_dmafunction cx8801_aud_irqfunction cx8801_irqfunction cx88_alsa_dma_initfunction cx88_alsa_dma_mapfunction cx88_alsa_dma_unmapfunction cx88_alsa_dma_freefunction dsp_buffer_freefunction snd_cx88_pcm_openfunction snd_cx88_closefunction snd_cx88_hw_paramsfunction snd_cx88_hw_freefunction snd_cx88_preparefunction snd_cx88_card_triggerfunction snd_cx88_pointerfunction callbackfunction snd_cx88_pcmfunction snd_cx88_volume_infofunction snd_cx88_volume_getfunction snd_cx88_wm8775_volume_putfunction snd_cx88_volume_putfunction snd_cx88_switch_getfunction snd_cx88_switch_putfunction snd_cx88_alc_getfunction snd_cx88_alc_putfunction snd_cx88_freefunction snd_cx88_dev_freefunction snd_cx88_createfunction cx88_audio_initdevfunction cx88_audio_finidev
Annotated Snippet
static struct pci_driver cx88_audio_pci_driver = {
.name = "cx88_audio",
.id_table = cx88_audio_pci_tbl,
.probe = cx88_audio_initdev,
.remove = cx88_audio_finidev,
};
module_pci_driver(cx88_audio_pci_driver);
Annotation
- Immediate include surface: `cx88.h`, `cx88-reg.h`, `linux/module.h`, `linux/init.h`, `linux/delay.h`, `linux/device.h`, `linux/interrupt.h`, `linux/vmalloc.h`.
- Detected declarations: `struct cx88_audio_buffer`, `struct cx88_audio_dev`, `function _cx88_start_audio_dma`, `function _cx88_stop_audio_dma`, `function cx8801_aud_irq`, `function cx8801_irq`, `function cx88_alsa_dma_init`, `function cx88_alsa_dma_map`, `function cx88_alsa_dma_unmap`, `function cx88_alsa_dma_free`.
- Atlas domain: Driver Families / drivers/media.
- 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.