fsl_esai_divisor_cal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 that
  • fp β€” bypass other dividers by setting fp directly, but only if fp != 0 ⭐

πŸ”₯ SEE ALSO πŸ”₯


ngl bestie the whole vibe here is just "do the divider math, hand it back as an int, then go call her from set_dai_sysclk() and set_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