sprd_mcdt_chan_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 0 on success, or an appropriate error code on failure. ✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./sound/soc/sprd/sprd-mcdt.c β€” plus the whole squad:


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