fsl_asrc_set_ideal_ratio(9)
π 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 π§
- Kernel file
./sound/soc/fsl/fsl_asrc.cβ the source of truth, go read it fr fr π fsl_asrc_sel_proc(9)fsl_asrc_request_pair(9)fsl_asrc_release_pair(9)fsl_asrc_set_watermarks(9)fsl_asrc_cal_asrck_divisor(9)fsl_asrc_config_pair(9)fsl_asrc_start_pair(9)fsl_asrc_stop_pair(9)fsl_asrc_get_dma_channel(9)fsl_asrc_init(9)fsl_asrc_isr(9)
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
- 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