sprd_mcdt_chan_int_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sprd_mcdt_chan_int_enable ✨

okay so bestie, welcome to the Kernel API Manual entry for sprd_mcdt_chan_int_enable(9) β€” this is the function that flips a MCDT channel into interrupt mode and honestly it's giving main character energy for the ADC/DAC pipeline πŸ’…


🌸 NAME 🌸

sprd_mcdt_chan_int_enable β€” enable the interrupt mode for the MCDT channel πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int sprd_mcdt_chan_int_enable (struct sprd_mcdt_chan *chan , u32
water_mark , struct sprd_mcdt_chan_callback *cb );

that's the whole signature, no cap β€” copy it exactly, she does not play about her argument order πŸ’–


✨ ARGUMENTS ✨

  • chan β€” the MCDT channel. your little guy. the one you're enabling πŸ’«
  • water_mark β€” water mark to trigger a interrupt 🌊 like, this is the level that makes the interrupt pop off
  • cb β€” callback when a interrupt happened πŸ“ž the function that gets pinged once the interrupt actually goes down

πŸ”₯ DESCRIPTION πŸ”₯

lowkey important context: right now it only can enable fifo almost full interrupt for ADC channel and fifo almost empty interrupt for DAC channel. that's the current state of things, fr fr β€” not a wishlist, just the facts 🫢

moreover (yes, "moreover", we're being fancy today ✨) for interrupt mode, user should use sprd_mcdt_chan_read or sprd_mcdt_chan_write to read or write data manually. no auto-pilot, you're driving πŸš—πŸ’¨

for ADC channel, user can start to read data once receiving one fifo full interrupt πŸ‘‘ for DAC channel, user can start to write data once receiving one fifo empty interrupt or just call sprd_mcdt_chan_write to write data directly β€” either vibe works, pick your lane 🌈

returns 0 on success, or an error code on failure 😭 (yes the classic 0-means-good, negative-means-sad situation)


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./sound/soc/sprd/sprd-mcdt.c and her besties:

go read them, iykyk πŸ“šπŸ’œ


ngl bestie, if you enable interrupt mode and then forget to actually call sprd_mcdt_chan_read / sprd_mcdt_chan_write yourself, nothing's gonna happen β€” the manual is literally telling you it's manual πŸ™ˆ

that's the whole page! sourced from ./sound/soc/sprd, dated October 2026, and it lives in that Kernel API Manual we mentioned up top 🌸 slay, go enable some interrupts, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from