sound/pci/ali5451/ali5451.c
Source file repositories/reference/linux-study-clean/sound/pci/ali5451/ali5451.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/ali5451/ali5451.c- Extension
.c- Size
- 53834 bytes
- Lines
- 2151
- 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.
- 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/module.hlinux/dma-mapping.hsound/core.hsound/pcm.hsound/info.hsound/ac97_codec.hsound/mpu401.hsound/initval.h
Detected Declarations
struct snd_alistruct snd_ali_voicestruct snd_ali_channel_controlstruct REGDATAstruct REGSstruct snd_ali_voicestruct snd_alidevstruct snd_ali_imagestruct snd_alistruct ali_pcm_descriptionfunction snd_ali_5451_peekfunction snd_ali_5451_pokefunction snd_ali_codec_readyfunction snd_ali_stimer_readyfunction snd_ali_codec_pokefunction snd_ali_codec_peekfunction snd_ali_codec_writefunction snd_ali_codec_readfunction snd_ali_reset_5451function snd_ali_enable_special_channelfunction snd_ali_disable_special_channelfunction snd_ali_enable_address_interruptfunction snd_ali_disable_address_interruptfunction snd_ali_disable_voice_irqfunction snd_ali_alloc_pcm_channelfunction snd_ali_find_free_channelfunction snd_ali_free_channel_pcmfunction snd_ali_stop_voicefunction snd_ali_delayfunction snd_ali_detect_spdif_ratefunction snd_ali_get_spdif_in_ratefunction snd_ali_enable_spdif_infunction snd_ali_disable_spdif_infunction snd_ali_set_spdif_out_ratefunction snd_ali_enable_spdif_outfunction snd_ali_enable_spdif_chnoutfunction snd_ali_disable_spdif_chnoutfunction snd_ali_disable_spdif_outfunction snd_ali_update_ptrfunction snd_ali_card_interruptfunction snd_ali_free_voicefunction snd_ali_clear_voicesfunction snd_ali_write_voice_regsfunction snd_ali_convert_ratefunction snd_ali_control_modefunction snd_ali_triggerfunction snd_ali_playback_hw_paramsfunction snd_ali_playback_hw_free
Annotated Snippet
static struct pci_driver ali5451_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_ali_ids,
.probe = snd_ali_probe,
.driver = {
.pm = &ali_pm,
},
};
module_pci_driver(ali5451_driver);
Annotation
- Immediate include surface: `linux/io.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/init.h`, `linux/pci.h`, `linux/slab.h`, `linux/module.h`, `linux/dma-mapping.h`.
- Detected declarations: `struct snd_ali`, `struct snd_ali_voice`, `struct snd_ali_channel_control`, `struct REGDATA`, `struct REGS`, `struct snd_ali_voice`, `struct snd_alidev`, `struct snd_ali_image`, `struct snd_ali`, `struct ali_pcm_description`.
- 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.