sound/pci/ens1370.c
Source file repositories/reference/linux-study-clean/sound/pci/ens1370.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/ens1370.c- Extension
.c- Size
- 76137 bytes
- Lines
- 2351
- 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.
- 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/io.hlinux/delay.hlinux/interrupt.hlinux/init.hlinux/pci.hlinux/slab.hlinux/gameport.hlinux/module.hlinux/mutex.hsound/core.hsound/control.hsound/pcm.hsound/rawmidi.hsound/ac97_codec.hsound/ak4531_codec.hsound/initval.hsound/asoundef.h
Detected Declarations
struct ensoniqstruct es1371_quirkfunction snd_es1371_wait_src_readyfunction snd_es1371_src_readfunction snd_es1371_src_writefunction snd_es1370_codec_writefunction is_ev1938function snd_es1371_codec_writefunction snd_es1371_codec_readfunction snd_es1371_codec_waitfunction snd_es1371_adc_ratefunction snd_es1371_dac1_ratefunction snd_es1371_dac2_ratefunction snd_ensoniq_triggerfunction snd_pcm_group_for_each_entryfunction scoped_guardfunction snd_pcm_group_for_each_entryfunction scoped_guardfunction snd_ensoniq_playback1_preparefunction snd_ensoniq_playback2_preparefunction snd_ensoniq_capture_preparefunction snd_ensoniq_playback1_pointerfunction snd_ensoniq_playback2_pointerfunction snd_ensoniq_capture_pointerfunction snd_ensoniq_playback1_openfunction snd_ensoniq_playback2_openfunction snd_ensoniq_capture_openfunction snd_ensoniq_playback1_closefunction snd_ensoniq_playback2_closefunction snd_ensoniq_capture_closefunction snd_ensoniq_pcmfunction snd_ensoniq_pcm2function mixerfunction snd_ens1373_spdif_default_getfunction snd_ens1373_spdif_default_putfunction snd_ens1373_spdif_mask_getfunction snd_ens1373_spdif_stream_getfunction snd_ens1373_spdif_stream_putfunction snd_es1371_spdif_getfunction snd_es1371_spdif_putfunction snd_es1373_rear_getfunction snd_es1373_rear_putfunction snd_es1373_line_getfunction snd_es1373_line_putfunction snd_ensoniq_mixer_free_ac97function es1371_quirk_lookupfunction snd_ensoniq_1371_mixerfunction snd_pci_quirk_lookup
Annotated Snippet
static struct pci_driver ens137x_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_audiopci_ids,
.probe = snd_audiopci_probe,
.driver = {
.pm = &snd_ensoniq_pm,
},
};
module_pci_driver(ens137x_driver);
Annotation
- Immediate include surface: `linux/io.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/init.h`, `linux/pci.h`, `linux/slab.h`, `linux/gameport.h`, `linux/module.h`.
- Detected declarations: `struct ensoniq`, `struct es1371_quirk`, `function snd_es1371_wait_src_ready`, `function snd_es1371_src_read`, `function snd_es1371_src_write`, `function snd_es1370_codec_write`, `function is_ev1938`, `function snd_es1371_codec_write`, `function snd_es1371_codec_read`, `function snd_es1371_codec_wait`.
- 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.