sprd_mcdt_request_chan(9)
πΈ sprd_mcdt_request_chan(9) πΈ
okay bestie, welcome to the Kernel API Manual β¨ β this one's a lil function called sprd_mcdt_request_chan, and no cap, it's the moment you go get yourself an MCDT channel. Let's get into it π
β¨ NAME β¨
sprd_mcdt_request_chan β request one MCDT channel π
Like, one. A single one. Not a whole pile. Okay? π«Ά
π¦ SYNOPSIS π¦
struct sprd_mcdt_chan * sprd_mcdt_request_chan (u8 channel , enum
sprd_mcdt_channel_type type );
the way this returns a struct sprd_mcdt_chan * β¦ main character energy honestly π
π ARGUMENTS π
channelβ the channel id π (that's it, that's the whole vibe)typeβ the channel type, and it can be either one ADC channel or a DAC channel, so pick your fighter π€
β DESCRIPTION β
Rreturn NULL if there's no available channel π
fr fr the manpage says "Rreturn" with two r's and I'm not about to fix it, that's between the kernel devs and god π β but the meaning is crystal: if nothing's free, you get NULL. no channel for you. vibe check failed π
π₯ SEE ALSO π₯
Kernel file ./sound/soc/sprd/sprd-mcdt.c β and like, the whole MCDT squad honestly:
sprd_mcdt_chan_write(9)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_free_chan(9)
read them, love them, cite them in your commit message π
that's the whole page bestie, go forth and request your channel β¨
signing off from ./sound/soc/sprd, October 2026 β this little doc was brought to you by the Kernel API Manual, 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