drivers/media/usb/em28xx/em28xx-audio.c
Source file repositories/reference/linux-study-clean/drivers/media/usb/em28xx/em28xx-audio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/usb/em28xx/em28xx-audio.c- Extension
.c- Size
- 24688 bytes
- Lines
- 976
- Domain
- Driver Families
- Bucket
- drivers/media
- 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.
- 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
em28xx.hlinux/kernel.hlinux/usb.hlinux/init.hlinux/sound.hlinux/spinlock.hlinux/soundcard.hlinux/slab.hlinux/module.hsound/core.hsound/pcm.hsound/pcm_params.hsound/info.hsound/initval.hsound/control.hsound/tlv.hsound/ac97_codec.hmedia/v4l2-common.h
Detected Declarations
function em28xx_deinit_isoc_audiofunction em28xx_audio_isocirqfunction em28xx_init_audio_isocfunction snd_em28xx_capture_openfunction snd_em28xx_pcm_closefunction snd_em28xx_preparefunction audio_triggerfunction snd_em28xx_capture_triggerfunction snd_em28xx_capture_pointerfunction em28xx_vol_infofunction em28xx_vol_putfunction em28xx_vol_getfunction em28xx_vol_put_mutefunction em28xx_vol_get_mutefunction em28xx_cvol_newfunction em28xx_audio_free_urbfunction em28xx_audio_ep_packet_sizefunction em28xx_audio_urb_initfunction em28xx_audio_initfunction em28xx_audio_finifunction em28xx_audio_suspendfunction em28xx_audio_resumefunction em28xx_alsa_registerfunction em28xx_alsa_unregistermodule init em28xx_alsa_register
Annotated Snippet
module_init(em28xx_alsa_register);
module_exit(em28xx_alsa_unregister);
Annotation
- Immediate include surface: `em28xx.h`, `linux/kernel.h`, `linux/usb.h`, `linux/init.h`, `linux/sound.h`, `linux/spinlock.h`, `linux/soundcard.h`, `linux/slab.h`.
- Detected declarations: `function em28xx_deinit_isoc_audio`, `function em28xx_audio_isocirq`, `function em28xx_init_audio_isoc`, `function snd_em28xx_capture_open`, `function snd_em28xx_pcm_close`, `function snd_em28xx_prepare`, `function audio_trigger`, `function snd_em28xx_capture_trigger`, `function snd_em28xx_capture_pointer`, `function em28xx_vol_info`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.