fsl_esai_set_dai_sysclk(9)
π fsl_esai_set_dai_sysclk(9) β from the Kernel API Manual π
okay so bestie, buckle up, because today we're configuring the clock frequency of MCLK β that's HCKT/HCKR to you and me β¨ this little function lives its whole life in the kernel API manual and honestly? iconic. let's get into it π¦
β¨ SYNOPSIS β¨
int fsl_esai_set_dai_sysclk (struct snd_soc_dai *dai , int clk_id ,
unsigned int freq , int dir );
that's the whole vibe check right there π
four arguments, one int coming back at you, no cap π«Ά
πΈ ARGUMENTS πΈ
daiβ pointer to DAI π«Ά literally just a pointer, she's pointing at a DAI, that's her whole jobclk_idβ The clock source of HCKT/HCKR (Input from outside; output from inside, FSYS or EXTAL) π so like, where the clock is coming from: outside input, inside output, FSYS, or EXTAL, iykykfreqβ The required clock rate of HCKT/HCKR π₯ the actual rate you want,unsigned intand everythingdirβ The clock direction of HCKT/HCKR π¦ which way the clock is going, bestie
β NOTE β
If the direction is input, we do not care aboutclk_idπ like, genuinely do not care. input direction?clk_idis not invited to the conversation. periodt.
π SEE ALSO π
- Kernel file
./sound/soc/fsl/fsl_esai.c struct fsl_esai_soc_data(9)struct fsl_esai(9)fsl_esai_divisor_cal(9)fsl_esai_set_bclk(9)
go read those, they're all in the same friend group fr fr π
sign-off time π§ this gorgeous little page comes to you from ./sound/soc/fsl, dated October 2026, and it's filed under fsl_esai_set_dai_sysclk(9) β main character energy, obviously ππ
π¦ 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