sound/soc/sprd/sprd-pcm-dma.h
Source file repositories/reference/linux-study-clean/sound/soc/sprd/sprd-pcm-dma.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/sprd/sprd-pcm-dma.h- Extension
.h- Size
- 1248 bytes
- Lines
- 59
- Domain
- Driver Families
- Bucket
- sound/soc
- Inferred role
- Driver Families: implementation source
- Status
- source 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 or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct sprd_pcm_dma_paramsstruct sprd_compr_playinfostruct sprd_compr_paramsstruct sprd_compr_callbackstruct sprd_compr_opsstruct sprd_compr_data
Annotated Snippet
struct sprd_pcm_dma_params {
dma_addr_t dev_phys[SPRD_PCM_CHANNEL_MAX];
u32 datawidth[SPRD_PCM_CHANNEL_MAX];
u32 fragment_len[SPRD_PCM_CHANNEL_MAX];
const char *chan_name[SPRD_PCM_CHANNEL_MAX];
};
struct sprd_compr_playinfo {
int total_time;
int current_time;
int total_data_length;
u64 current_data_offset;
};
struct sprd_compr_params {
u32 direction;
u32 rate;
u32 sample_rate;
u32 channels;
u32 format;
u32 period;
u32 periods;
u32 info_phys;
u32 info_size;
};
struct sprd_compr_callback {
void (*drain_notify)(void *data);
void *drain_data;
};
struct sprd_compr_ops {
int (*open)(int str_id, struct sprd_compr_callback *cb);
int (*close)(int str_id);
int (*start)(int str_id);
int (*stop)(int str_id);
int (*pause)(int str_id);
int (*pause_release)(int str_id);
int (*drain)(u64 received_total);
int (*set_params)(int str_id, struct sprd_compr_params *params);
};
struct sprd_compr_data {
struct sprd_compr_ops *ops;
struct sprd_pcm_dma_params *dma_params;
};
#endif /* __SPRD_PCM_DMA_H */
Annotation
- Detected declarations: `struct sprd_pcm_dma_params`, `struct sprd_compr_playinfo`, `struct sprd_compr_params`, `struct sprd_compr_callback`, `struct sprd_compr_ops`, `struct sprd_compr_data`.
- Atlas domain: Driver Families / sound/soc.
- Implementation status: source 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.