sound/soc/amd/acp/acp-pci.c
Source file repositories/reference/linux-study-clean/sound/soc/amd/acp/acp-pci.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/amd/acp/acp-pci.c- Extension
.c- Size
- 7512 bytes
- Lines
- 302
- Domain
- Driver Families
- Bucket
- sound/soc
- 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/delay.hlinux/interrupt.hlinux/pci.hlinux/platform_device.hlinux/module.hlinux/pm_runtime.hamd.h../mach-config.h
Detected Declarations
function irq_handlerfunction acp_fill_platform_dev_infofunction create_acp_platform_devsfunction acp_pci_probefunction snd_acp_suspendfunction snd_acp_resumefunction acp_pci_remove
Annotated Snippet
static struct pci_driver snd_amd_acp_pci_driver = {
.name = KBUILD_MODNAME,
.id_table = acp_pci_ids,
.probe = acp_pci_probe,
.remove = acp_pci_remove,
.driver = {
.pm = pm_ptr(&acp_pm_ops),
},
};
module_pci_driver(snd_amd_acp_pci_driver);
MODULE_DESCRIPTION("AMD ACP common PCI support");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_IMPORT_NS("SND_SOC_ACP_COMMON");
MODULE_ALIAS(DRV_NAME);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/interrupt.h`, `linux/pci.h`, `linux/platform_device.h`, `linux/module.h`, `linux/pm_runtime.h`, `amd.h`, `../mach-config.h`.
- Detected declarations: `function irq_handler`, `function acp_fill_platform_dev_info`, `function create_acp_platform_devs`, `function acp_pci_probe`, `function snd_acp_suspend`, `function snd_acp_resume`, `function acp_pci_remove`.
- Atlas domain: Driver Families / sound/soc.
- 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.