sound/ppc/snd_ps3.c
Source file repositories/reference/linux-study-clean/sound/ppc/snd_ps3.c
File Facts
- System
- Linux kernel
- Corpus path
sound/ppc/snd_ps3.c- Extension
.c- Size
- 27545 bytes
- Lines
- 1103
- Domain
- Driver Families
- Bucket
- sound/ppc
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/dma-mapping.hlinux/dmapool.hlinux/gfp.hlinux/init.hlinux/interrupt.hlinux/io.hlinux/module.hsound/asound.hsound/control.hsound/core.hsound/initval.hsound/memalloc.hsound/pcm.hsound/pcm_params.hasm/dma.hasm/firmware.hasm/lv1call.hasm/ps3.hasm/ps3av.hsnd_ps3.hsnd_ps3_reg.h
Detected Declarations
function read_regfunction write_regfunction update_regfunction update_mask_regfunction snd_ps3_verify_dma_stopfunction snd_ps3_wait_for_dma_stopfunction snd_ps3_kick_dmafunction v_to_busfunction snd_ps3_bump_bufferfunction snd_ps3_program_dmafunction snd_ps3_interruptfunction detectedfunction snd_ps3_mutefunction snd_ps3_change_avsettingfunction PS3_AUDIO_AO_3WMCTRL_ASORUNfunction snd_ps3_set_avsettingfunction snd_ps3_pcm_openfunction snd_ps3_pcm_closefunction snd_ps3_delay_to_bytesfunction snd_ps3_pcm_preparefunction snd_ps3_pcm_triggerfunction scoped_guardfunction scoped_guardfunction snd_ps3_pcm_pointerfunction scoped_guardfunction snd_ps3_spdif_mask_infofunction snd_ps3_spdif_cmask_getfunction snd_ps3_spdif_pmask_getfunction snd_ps3_spdif_default_getfunction snd_ps3_spdif_default_putfunction snd_ps3_map_mmiofunction snd_ps3_unmap_mmiofunction snd_ps3_allocate_irqfunction snd_ps3_free_irqfunction snd_ps3_audio_set_base_addrfunction snd_ps3_audio_fixupfunction snd_ps3_init_avsettingfunction snd_ps3_driver_probefunction snd_ps3_driver_removefunction snd_ps3_initfunction snd_ps3_exitmodule init snd_ps3_init
Annotated Snippet
module_init(snd_ps3_init);
static void __exit snd_ps3_exit(void)
{
ps3_system_bus_driver_unregister(&snd_ps3_bus_driver_info);
}
module_exit(snd_ps3_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("PS3 sound driver");
MODULE_AUTHOR("Sony Computer Entertainment Inc.");
MODULE_ALIAS(PS3_MODULE_ALIAS_SOUND);
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/dmapool.h`, `linux/gfp.h`, `linux/init.h`, `linux/interrupt.h`, `linux/io.h`, `linux/module.h`, `sound/asound.h`.
- Detected declarations: `function read_reg`, `function write_reg`, `function update_reg`, `function update_mask_reg`, `function snd_ps3_verify_dma_stop`, `function snd_ps3_wait_for_dma_stop`, `function snd_ps3_kick_dma`, `function v_to_bus`, `function snd_ps3_bump_buffer`, `function snd_ps3_program_dma`.
- Atlas domain: Driver Families / sound/ppc.
- 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.