sprd_mcdt_chan_write(9)
π
sprd_mcdt_chan_write(9) π
okay bestie, welcome to the Kernel API Manual β we're talking about sprd_mcdt_chan_write(9) today and honestly it's giving βsmall function, very important fifo behavior.β let's get into it π«Ά
β¨ NAME β¨
sprd_mcdt_chan_write β write data to the MCDT channel's fifo π
πΈ SYNOPSIS πΈ
int sprd_mcdt_chan_write (struct sprd_mcdt_chan *chan , char *tx_buf ,
u32 size );
π ARGUMENTS π
chanβ the MCDT channel πtx_bufβ send buffer π€sizeβ data size π
π NOTE π
bestie, please read this part before you start throwing data around:
β οΈ We can not write data to the channel fifo when enabling the DMA mode β otherwise the channel fifo data will be invalid. no cap, that's the rule π
- If there are not enough space of the channel fifo, it will return errors to users. π
- Returns
0on success, or an appropriate error code on failure. β¨
π₯ SEE ALSO π₯
Kernel file ./sound/soc/sprd/sprd-mcdt.c β plus the whole squad:
sprd_mcdt_chan_read(9)sprd_mcdt_chan_int_enable(9)sprd_mcdt_chan_int_disable(9)sprd_mcdt_chan_dma_enable(9)sprd_mcdt_chan_dma_disable(9)sprd_mcdt_request_chan(9)sprd_mcdt_free_chan(9)
xoxo π β from the Kernel API Manual, source ./sound/soc/sprd, dated October 2026, all about sprd_mcdt_chan_write(9). slay and read your fifo docs π§ββοΈ
π¦ 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