sound/parisc/harmony.c
Source file repositories/reference/linux-study-clean/sound/parisc/harmony.c
File Facts
- System
- Linux kernel
- Corpus path
sound/parisc/harmony.c- Extension
.c- Size
- 23708 bytes
- Lines
- 967
- Domain
- Driver Families
- Bucket
- sound/parisc
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/init.hlinux/slab.hlinux/time.hlinux/wait.hlinux/delay.hlinux/module.hlinux/interrupt.hlinux/spinlock.hlinux/dma-mapping.hlinux/io.hsound/core.hsound/pcm.hsound/control.hsound/rawmidi.hsound/initval.hsound/info.hasm/hardware.hasm/parisc-device.hharmony.h
Detected Declarations
function harmony_readfunction harmony_writefunction harmony_wait_for_controlfunction harmony_resetfunction harmony_disable_interruptsfunction harmony_enable_interruptsfunction harmony_mutefunction harmony_unmutefunction harmony_set_controlfunction snd_harmony_interruptfunction scoped_guardfunction scoped_guardfunction scoped_guardfunction scoped_guardfunction snd_harmony_rate_bitsfunction snd_harmony_playback_triggerfunction snd_harmony_capture_triggerfunction snd_harmony_set_data_formatfunction snd_harmony_playback_preparefunction snd_harmony_capture_preparefunction snd_harmony_playback_pointerfunction snd_harmony_capture_pointerfunction snd_harmony_playback_openfunction snd_harmony_capture_openfunction snd_harmony_playback_closefunction snd_harmony_capture_closefunction snd_harmony_pcm_initfunction snd_harmony_set_new_gainfunction snd_harmony_mixercontrol_infofunction snd_harmony_volume_getfunction snd_harmony_volume_putfunction snd_harmony_captureroute_infofunction snd_harmony_captureroute_getfunction snd_harmony_captureroute_putfunction snd_harmony_mixer_resetfunction snd_harmony_mixer_initfunction snd_harmony_freefunction snd_harmony_dev_freefunction snd_harmony_createfunction snd_harmony_probefunction snd_harmony_removefunction alsa_harmony_initfunction alsa_harmony_finimodule init alsa_harmony_init
Annotated Snippet
module_init(alsa_harmony_init);
module_exit(alsa_harmony_fini);
Annotation
- Immediate include surface: `linux/init.h`, `linux/slab.h`, `linux/time.h`, `linux/wait.h`, `linux/delay.h`, `linux/module.h`, `linux/interrupt.h`, `linux/spinlock.h`.
- Detected declarations: `function harmony_read`, `function harmony_write`, `function harmony_wait_for_control`, `function harmony_reset`, `function harmony_disable_interrupts`, `function harmony_enable_interrupts`, `function harmony_mute`, `function harmony_unmute`, `function harmony_set_control`, `function snd_harmony_interrupt`.
- Atlas domain: Driver Families / sound/parisc.
- Implementation status: integration 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.