sound/soc/intel/avs/core.c
Source file repositories/reference/linux-study-clean/sound/soc/intel/avs/core.c
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/intel/avs/core.c- Extension
.c- Size
- 26198 bytes
- Lines
- 960
- 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/acpi.hlinux/module.hlinux/pci.hacpi/nhlt.hsound/hda_codec.hsound/hda_i915.hsound/hda_register.hsound/hdaudio.hsound/hdaudio_ext.hsound/intel-dsp-config.h../../codecs/hda.havs.hcldma.hdebug.hmessages.hpcm.h
Detected Declarations
function avs_hda_update_config_dwordfunction avs_hda_power_gating_enablefunction avs_hdac_clock_gating_enablefunction avs_hda_clock_gating_enablefunction avs_hda_l1sen_enablefunction avs_hdac_bus_init_streamsfunction avs_hdac_bus_init_chipfunction probe_codecfunction avs_hdac_bus_probe_codecsfunction avs_hda_probe_workfunction hdac_stream_update_posfunction hdac_update_streamfunction avs_hda_interruptfunction avs_hda_irq_handlerfunction avs_hda_irq_threadfunction avs_dsp_irq_handlerfunction avs_dsp_irq_threadfunction avs_hdac_acquire_irqfunction avs_bus_initfunction avs_pci_probefunction avs_pci_shutdownfunction avs_pci_removefunction avs_suspend_standbyfunction avs_suspend_commonfunction avs_resume_standbyfunction avs_resume_commonfunction avs_suspendfunction avs_resumefunction avs_runtime_suspendfunction avs_runtime_resumefunction avs_freezefunction avs_thawfunction avs_powerofffunction avs_restore
Annotated Snippet
static struct pci_driver avs_pci_driver = {
.name = KBUILD_MODNAME,
.id_table = avs_ids,
.probe = avs_pci_probe,
.remove = avs_pci_remove,
.shutdown = avs_pci_shutdown,
.dev_groups = avs_attr_groups,
.driver = {
.pm = pm_ptr(&avs_dev_pm),
},
};
module_pci_driver(avs_pci_driver);
MODULE_AUTHOR("Cezary Rojewski <cezary.rojewski@intel.com>");
MODULE_AUTHOR("Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>");
MODULE_DESCRIPTION("Intel cAVS sound driver");
MODULE_LICENSE("GPL");
MODULE_FIRMWARE("intel/avs/skl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/apl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/cnl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/icl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/jsl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/lkf/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/tgl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/ehl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/adl/dsp_basefw.bin");
MODULE_FIRMWARE("intel/avs/adl_n/dsp_basefw.bin");
MODULE_FIRMWARE("intel/fcl/dsp_basefw.bin");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/module.h`, `linux/pci.h`, `acpi/nhlt.h`, `sound/hda_codec.h`, `sound/hda_i915.h`, `sound/hda_register.h`, `sound/hdaudio.h`.
- Detected declarations: `function avs_hda_update_config_dword`, `function avs_hda_power_gating_enable`, `function avs_hdac_clock_gating_enable`, `function avs_hda_clock_gating_enable`, `function avs_hda_l1sen_enable`, `function avs_hdac_bus_init_streams`, `function avs_hdac_bus_init_chip`, `function probe_codec`, `function avs_hdac_bus_probe_codecs`, `function avs_hda_probe_work`.
- 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.