sound/soc/amd/yc/pci-acp6x.c
Source file repositories/reference/linux-study-clean/sound/soc/amd/yc/pci-acp6x.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/amd/yc/pci-acp6x.c- Extension
.c- Size
- 8405 bytes
- Lines
- 363
- 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.
- 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/pci.hlinux/module.hlinux/io.hlinux/delay.hlinux/platform_device.hlinux/interrupt.hsound/pcm_params.hlinux/pm_runtime.hacp6x.h
Detected Declarations
struct acp6x_dev_datafunction acp6x_power_onfunction acp6x_resetfunction acp6x_enable_interruptsfunction acp6x_disable_interruptsfunction acp6x_initfunction acp6x_deinitfunction acp6x_irq_handlerfunction snd_acp6x_probefunction snd_acp6x_suspendfunction snd_acp6x_resumefunction snd_acp6x_remove
Annotated Snippet
static struct pci_driver yc_acp6x_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_acp6x_ids,
.probe = snd_acp6x_probe,
.remove = snd_acp6x_remove,
.driver = {
.pm = pm_ptr(&acp6x_pm),
}
};
module_pci_driver(yc_acp6x_driver);
MODULE_AUTHOR("Vijendar.Mukunda@amd.com");
MODULE_DESCRIPTION("AMD ACP Yellow Carp PCI driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/pci.h`, `linux/module.h`, `linux/io.h`, `linux/delay.h`, `linux/platform_device.h`, `linux/interrupt.h`, `sound/pcm_params.h`, `linux/pm_runtime.h`.
- Detected declarations: `struct acp6x_dev_data`, `function acp6x_power_on`, `function acp6x_reset`, `function acp6x_enable_interrupts`, `function acp6x_disable_interrupts`, `function acp6x_init`, `function acp6x_deinit`, `function acp6x_irq_handler`, `function snd_acp6x_probe`, `function snd_acp6x_suspend`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: pattern implementation candidate.
- 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.