sound/pci/asihpi/asihpi.c
Source file repositories/reference/linux-study-clean/sound/pci/asihpi/asihpi.c
File Facts
- System
- Linux kernel
- Corpus path
sound/pci/asihpi/asihpi.c- Extension
.c- Size
- 82692 bytes
- Lines
- 2972
- 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.
- 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
hpi_internal.hhpi_version.hhpimsginit.hhpioctl.hhpicmn.hlinux/pci.hlinux/init.hlinux/jiffies.hlinux/slab.hlinux/time.hlinux/wait.hlinux/module.hsound/core.hsound/control.hsound/pcm.hsound/pcm_params.hsound/info.hsound/initval.hsound/tlv.hsound/hwdep.h
Detected Declarations
struct clk_sourcestruct clk_cachestruct snd_card_asihpistruct snd_card_asihpi_pcmstruct hpi_controlfunction hpi_stream_host_buffer_attachfunction hpi_stream_host_buffer_detachfunction hpi_stream_startfunction hpi_stream_stopfunction hpi_stream_get_info_exfunction hpi_stream_group_addfunction hpi_stream_group_resetfunction handle_errorfunction print_hwparamsfunction snd_card_asihpi_format_alsa2hpifunction snd_card_asihpi_pcm_sampleratesfunction snd_card_asihpi_pcm_hw_paramsfunction snd_card_asihpi_hw_freefunction snd_card_asihpi_runtime_freefunction snd_card_asihpi_pcm_timer_startfunction snd_card_asihpi_pcm_timer_stopfunction snd_card_asihpi_pcm_int_startfunction snd_card_asihpi_pcm_int_stopfunction snd_card_asihpi_triggerfunction snd_pcm_group_for_each_entryfunction snd_pcm_group_for_each_entryfunction modulo_minfunction snd_card_asihpi_timer_functionfunction snd_pcm_group_for_each_entryfunction snd_card_asihpi_isrfunction snd_card_asihpi_playback_preparefunction snd_card_asihpi_playback_pointerfunction snd_card_asihpi_playback_formatsfunction snd_card_asihpi_playback_openfunction snd_card_asihpi_playback_closefunction snd_card_asihpi_capture_pointerfunction snd_card_asihpi_capture_preparefunction snd_card_asihpi_capture_formatsfunction snd_card_asihpi_capture_openfunction snd_card_asihpi_capture_closefunction snd_card_asihpi_pcm_newfunction ctl_addfunction asihpi_ctl_initfunction snd_asihpi_volume_infofunction snd_asihpi_volume_getfunction snd_asihpi_volume_putfunction snd_asihpi_volume_mute_getfunction snd_asihpi_volume_mute_put
Annotated Snippet
static struct pci_driver driver = {
.name = KBUILD_MODNAME,
.id_table = asihpi_pci_tbl,
.probe = snd_asihpi_probe,
.remove = snd_asihpi_remove,
};
static int __init snd_asihpi_init(void)
{
asihpi_init();
return pci_register_driver(&driver);
}
static void __exit snd_asihpi_exit(void)
{
pci_unregister_driver(&driver);
asihpi_exit();
}
module_init(snd_asihpi_init)
module_exit(snd_asihpi_exit)
Annotation
- Immediate include surface: `hpi_internal.h`, `hpi_version.h`, `hpimsginit.h`, `hpioctl.h`, `hpicmn.h`, `linux/pci.h`, `linux/init.h`, `linux/jiffies.h`.
- Detected declarations: `struct clk_source`, `struct clk_cache`, `struct snd_card_asihpi`, `struct snd_card_asihpi_pcm`, `struct hpi_control`, `function hpi_stream_host_buffer_attach`, `function hpi_stream_host_buffer_detach`, `function hpi_stream_start`, `function hpi_stream_stop`, `function hpi_stream_get_info_ex`.
- Atlas domain: Driver Families / sound/pci.
- Implementation status: pattern implementation candidate.
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.