sound/pci/es1968.c
Source file repositories/reference/linux-study-clean/sound/pci/es1968.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/es1968.c- Extension
.c- Size
- 76846 bytes
- Lines
- 2818
- 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/dma-mapping.hlinux/slab.hlinux/gameport.hlinux/module.hlinux/mutex.hlinux/input.hsound/core.hsound/pcm.hsound/mpu401.hsound/ac97_codec.hsound/initval.hmedia/drv-intf/tea575x.h
Detected Declarations
struct esm_memorystruct esschanstruct es1968struct snd_es1968_tea575x_gpiostruct ess_device_listenum snd_enum_apu_typefunction __maestro_writefunction maestro_writefunction __maestro_readfunction maestro_readfunction snd_es1968_ac97_waitfunction snd_es1968_ac97_wait_pollfunction snd_es1968_ac97_writefunction snd_es1968_ac97_readfunction apu_index_setfunction apu_data_setfunction __apu_set_registerfunction apu_set_registerfunction __apu_get_registerfunction apu_get_registerfunction assp_set_registerfunction assp_get_registerfunction wave_set_registerfunction wave_get_registerfunction snd_es1968_bob_stopfunction snd_es1968_bob_startfunction snd_es1968_bob_incfunction snd_es1968_bob_decfunction list_for_each_entryfunction snd_es1968_calc_bob_ratefunction snd_es1968_compute_ratefunction snd_es1968_get_dma_ptrfunction snd_es1968_apu_set_freqfunction snd_es1968_trigger_apufunction snd_es1968_pcm_startfunction snd_es1968_pcm_stopfunction snd_es1968_program_wavecachefunction snd_es1968_playback_setupfunction scoped_guardfunction init_capture_apufunction snd_es1968_capture_setupfunction snd_es1968_pcm_preparefunction snd_es1968_pcm_triggerfunction snd_es1968_pcm_pointerfunction calc_available_memory_sizefunction snd_es1968_free_memoryfunction snd_es1968_free_dmabuffunction snd_es1968_init_dmabuf
Annotated Snippet
static struct pci_driver es1968_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_es1968_ids,
.probe = snd_es1968_probe,
.driver = {
.pm = &es1968_pm,
},
};
module_pci_driver(es1968_driver);
Annotation
- Immediate include surface: `linux/io.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/init.h`, `linux/pci.h`, `linux/dma-mapping.h`, `linux/slab.h`, `linux/gameport.h`.
- Detected declarations: `struct esm_memory`, `struct esschan`, `struct es1968`, `struct snd_es1968_tea575x_gpio`, `struct ess_device_list`, `enum snd_enum_apu_type`, `function __maestro_write`, `function maestro_write`, `function __maestro_read`, `function maestro_read`.
- 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.