sound/pci/maestro3.c
Source file repositories/reference/linux-study-clean/sound/pci/maestro3.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/maestro3.c- Extension
.c- Size
- 81263 bytes
- Lines
- 2713
- 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/vmalloc.hlinux/module.hlinux/firmware.hlinux/input.hsound/core.hsound/info.hsound/control.hsound/pcm.hsound/mpu401.hsound/ac97_codec.hsound/initval.hasm/byteorder.h
Detected Declarations
struct m3_liststruct m3_dmastruct assp_instancestruct snd_m3function snd_m3_outwfunction snd_m3_inwfunction snd_m3_outbfunction snd_m3_inbfunction snd_m3_assp_readfunction snd_m3_assp_writefunction snd_m3_assp_haltfunction snd_m3_assp_continuefunction snd_m3_add_listfunction snd_m3_remove_listfunction snd_m3_inc_timer_usersfunction snd_m3_dec_timer_usersfunction snd_m3_pcm_startfunction snd_m3_pcm_stopfunction snd_m3_pcm_triggerfunction snd_m3_pcm_setup1function snd_m3_pcm_setup2function snd_m3_playback_setupfunction snd_m3_capture_setupfunction snd_m3_pcm_hw_paramsfunction snd_m3_pcm_hw_freefunction snd_m3_pcm_preparefunction snd_m3_get_pointerfunction snd_m3_pcm_pointerfunction snd_m3_update_ptrfunction snd_m3_update_hw_volumefunction snd_m3_interruptfunction snd_m3_substream_openfunction snd_m3_substream_closefunction snd_m3_playback_openfunction snd_m3_playback_closefunction snd_m3_capture_openfunction snd_m3_capture_closefunction snd_m3_pcmfunction snd_m3_ac97_waitfunction snd_m3_ac97_readfunction snd_m3_ac97_writefunction touchedfunction snd_m3_remote_codec_configfunction snd_m3_try_read_vendorfunction snd_m3_ac97_resetfunction snd_m3_mixerfunction snd_m3_assp_initfunction snd_m3_assp_client_init
Annotated Snippet
static struct pci_driver m3_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_m3_ids,
.probe = snd_m3_probe,
.driver = {
.pm = &m3_pm,
},
};
module_pci_driver(m3_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/vmalloc.h`.
- Detected declarations: `struct m3_list`, `struct m3_dma`, `struct assp_instance`, `struct snd_m3`, `function snd_m3_outw`, `function snd_m3_inw`, `function snd_m3_outb`, `function snd_m3_inb`, `function snd_m3_assp_read`, `function snd_m3_assp_write`.
- 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.