fsl_asrc_set_ideal_ratio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fsl_asrc_set_ideal_ratio(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so real talk, this one's a little function from the kernel API manual and it's lowkey iconic for doing exactly one job and doing it well. no notes. ✨


🌸 NAME 🌸

fsl_asrc_set_ideal_ratio β€” it calculates and sets the ratio, but only for Ideal Ratio mode. that's it. that's the whole vibe. no cap, it's mode-specific and it knows it. πŸ’…


✨ SYNOPSIS ✨

int fsl_asrc_set_ideal_ratio (struct fsl_asrc_pair *pair , int inrate ,
       int outrate );

three args, one int coming back at you. clean, simple, slay. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pair β€” pointer to pair. like, the pair. the one and only. you gotta hand it over. πŸ‘‘
  • inrate β€” input rate. the rate coming in. πŸ“
  • outrate β€” output rate. the rate going out. the way these two are literally a matched set… chemistry. πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so the ratio itself? it's a 32-bit fixed point value with 26 fractional bits. yes bestie, 32 whole bits, and 26 of them are fractional. that's the entire description and honestly it ate. 🌈

heads up: the original doc says this is for Ideal Ratio mode only β€” so don't be out here using it for other modes and then acting surprised, iykyk. πŸ™ˆ

🧚 SEE ALSO 🧚

the whole friend group showed up. we love a supportive squad. πŸ’œ


and that's the page!! mwah πŸ’‹ this lil manpage lives in ./sound/soc/fsl and it's stamped October 2026 β€” so mark your calendars, bestie, and go set some ideal ratios. πŸŽ€β­

πŸ“¦ where this page comes from