fsl_asrc_cal_asrck_divisor(9)
πΈ 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:
fsl_asrc_sel_proc(9)fsl_asrc_request_pair(9)fsl_asrc_release_pair(9)fsl_asrc_set_watermarks(9)fsl_asrc_set_ideal_ratio(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)
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
- 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