fsl_esai_divisor_cal(9)
π fsl_esai_divisor_cal(9) π
okay so bestie, we're in the Kernel API Manual today and this little icon is from ./sound/soc/fsl β it's the divider math girlie for the ESAI and she is so ready to explain herself π
β¨ NAME β¨
fsl_esai_divisor_cal β literally the function that does the math for the divisors of psr, pm, fp π
and bestie she is supposed to be called inside set_dai_sysclk() and set_bclk(), okay? that's her whole assignment. no cap.
πΈ SYNOPSIS πΈ
int fsl_esai_divisor_cal (struct snd_soc_dai *dai , bool tx , u32 ratio
, bool usefp , u32 fp );
π¦ ARGUMENTS π¦
daiβ pointer to DAI π«Ά she just needs the pointer bestie, that's it.txβ tells you if the current setting is for playback or for capture πratioβ the desired overall ratio for the participating dividers β¨ (and yes the original calls them "paticipating" dividers, we love a typo moment, keeping it exactly as it is π)usefpβ for HCK setting there's literally no need to set the fp divider π so this flag exists for thatfpβ bypass other dividers by setting fp directly, but only iffp != 0β
π₯ SEE ALSO π₯
- Kernel file
./sound/soc/fsl/fsl_esai.c struct fsl_esai_soc_data(9)struct fsl_esai(9)fsl_esai_set_dai_sysclk(9)fsl_esai_set_bclk(9)
ngl bestie the whole vibe here is just "do the divider math, hand it back as anint, then go call her fromset_dai_sysclk()andset_bclk()" β she's a supporting character with main character energy π
and that's the page! π§ from ./sound/soc/fsl, stamped October 2026, in the Kernel API Manual β mwah, slay, 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