fsl_dma_pointer(9)
π fsl_dma_pointer(9) β the kernel API manual, bestie edition π
okay so real talk, this page is from the kernel API manual, and it's literally about fsl_dma_pointer β one tiny function that answers the biggest question in audio streaming: where are we right now? πβ¨
β¨ NAME β¨
fsl_dma_pointer β determine the current position of the DMA transfer π―
π¦ SYNOPSIS π¦
snd_pcm_uframes_t fsl_dma_pointer (struct snd_soc_component *component ,
struct snd_pcm_substream *substream );
that's the whole signature, no cap. two args, one snd_pcm_uframes_t back. she's compact, she's iconic π
πΈ ARGUMENTS πΈ
componentβ -- undescribed -- π so the manpage itself literally has nothing to say about it here. ngl, she's giving mystery. we don't invent details, so we just pass it along as-is, fr fr.substreamβ -- undescribed -- same energy π also undescribed in the original. not me reading the source to figure it out β that's a you activity, bestie.
π DESCRIPTION π
so this function? ALSA calls it when ALSA wants to know where in the stream buffer the hardware currently is. that's the whole job. it's the "where u at" text of kernel audio π«Ά
here's the breakdown, and you're gonna eat this up:
- for playback, the
SARregister contains the physical address of the most recent DMA transfer. like, that's the receipts of the last move π - for capture, the value lives in the
DARregister instead. different register, same vibe π - the base address of the buffer is stored in the
source_addrfield of the first link descriptor. so pointer = current spot minus that base. iykyk π«
β SEE ALSO β
- Kernel file
./sound/soc/fsl/fsl_dma.cβ the whole squad lives here π₯ fsl_dma_abort_stream(9)fsl_dma_update_pointers(9)fsl_dma_isr(9)fsl_dma_new(9)fsl_dma_open(9)fsl_dma_hw_params(9)fsl_dma_hw_free(9)fsl_dma_close(9)find_ssi_node(9)
that's ten references, bestie β read the whole clique ππ
and that's the page!! π this one's filed under ./sound/soc/fsl, stamped October 2026, and it's fsl_dma_pointer(9) all the way down. go hydrate and go read the source ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms