sprd_mcdt_chan_read(9)
π sprd_mcdt_chan_read(9) β like, the whole glow-up
okay so bestie, welcome to the Kernel API Manual β¨ this one's about sprd_mcdt_chan_read(9), and yes it's exactly as niche and exactly as iconic as it sounds π
πΈ NAME πΈ
sprd_mcdt_chan_read β read data from the MCDT channel's fifo π
β¨ SYNOPSIS β¨
int sprd_mcdt_chan_read (struct sprd_mcdt_chan *chan , char *rx_buf ,
u32 size );
π¦ ARGUMENTS π¦
chanβ the MCDT channel π like, the one you're reading from, no caprx_bufβ receive buffer π«Ά this is where the data lands, bestiesizeβ data size π how much you're asking for
π NOTE π
β οΈ ok so this is the part where you do not play yourself: we can not read data from the channel fifo when enabling the DMA mode π do that and the reading data will be invalid. literally invalid. don't do it, fr fr.
usually user need start to read data once receiving the fifo full interrupt β¨ (that's the vibe β wait for the fifo full interrupt, then go π«)
returns data size of reading successfully, or an error code on failure π₯ so check your return value, bestie, it's giving "I might fail" energy π
π SEE ALSO π
kernel file ./sound/soc/sprd/sprd-mcdt.c β and the whole friend group π«Ά:
sprd_mcdt_chan_write(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)
and that's the page, bestie π brought to you by the fine folks over at ./sound/soc/sprd, Kernel API Manual, October 2026 β slay, read responsibly, mwah π
π¦ 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