sprd_mcdt_chan_int_enable(9)
β¨ 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 offcbβ 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:
sprd_mcdt_chan_write(9)sprd_mcdt_chan_read(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)
go read them, iykyk ππ
ngl bestie, if you enable interrupt mode and then forget to actually callsprd_mcdt_chan_read/sprd_mcdt_chan_writeyourself, 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
- 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