sprd_mcdt_request_chan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:

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