fsl_asrc_cal_asrck_divisor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 fsl_asrc_cal_asrck_divisor(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” today's main character is fsl_asrc_cal_asrck_divisor, our little math-genius function from the kernel side of things πŸ’…


✨ NAME ✨

fsl_asrc_cal_asrck_divisor β€” literally just calculates the total divisor between the asrck clock rate and the sample rate. that's it. that's the whole job πŸŽ€


✨ SYNOPSIS ✨

u32 fsl_asrc_cal_asrck_divisor (struct fsl_asrc_pair *pair , u32 div );

✨ ARGUMENTS ✨

  • pair β€” pointer to pair 🫢 (yes bestie, it's a pair, that's the whole description, we keep it real here)
  • div β€” the divider πŸ’«

✨ DESCRIPTION ✨

ok so the way this works is, it's following the formula β€” and no cap, this is the entire formula:

clk_rate = samplerate * (2 ^ prescaler) * divider

that's the vibe. clock rate equals sample rate times two-to-the-prescaler times divider, and our girl fsl_asrc_cal_asrck_divisor is out here doing the math so you don't have to 😭✨


✨ SEE ALSO ✨

peep the kernel file, it's all in there: ./sound/soc/fsl/fsl_asrc.c πŸ”₯

and the whole friend group of related functions, no gatekeeping:


bestie reminder: this is kernel API territory β€” read the source before you go touching things, okay? iykyk πŸ’€

and that's the page!! brought to you by ./sound/soc/fsl, dated October 2026, straight from the Kernel API Manual πŸ’– go slay your audio driver config, mwah πŸ§šβ€β™€οΈπŸŽ€

πŸ“¦ where this page comes from