fsl_asrc_config_pair(9)
π fsl_asrc_config_pair β the kernel API manual, bestie edition π
Okay so welcome to fsl_asrc_config_pair(9), from the Kernel API Manual, and honestly? This one's a little setup queen. Let's get into it β¨
β¨ NAME β¨
fsl_asrc_config_pair β configure the assigned ASRC pair, that's literally the whole job π«Ά
πΈ SYNOPSIS πΈ
int fsl_asrc_config_pair (struct fsl_asrc_pair *pair , bool
use_ideal_rate );
π¦ ARGUMENTS π¦
pairβ pointer to pair. Yeah, that's it, that's the description, the docs said "pointer to pair" and honestly valid of them πuse_ideal_rateβ boolean configuration. It's a bool, it's config, it does the thing β¨
π DESCRIPTION π
So what does she do? She configures those ASRC registers according to a configuration instance of struct asrc_config β and that struct's whole personality includes in/output sample rate, width, channel and clock settings. Like, all of it. Every single one. She reads the config and sets up the registers to match, periodt π
π₯ NOTE π₯
Okay bestie, listen, this part matters, don't skip it π
The ideal ratio configuration can work with a flexible clock rate setting. Using IDEAL_RATIO_RATE gives you a faster converting speed β slay β but it overloads ASRC, so that's the tradeoff, no cap π
For a regular audio playback, the clock rate should not be slower than a clock rate aligning with the output sample rate. So like, don't go slower than that, fr fr.
For a use case requiring faster conversion, set use_ideal_rate to have the faster speed. That's the whole point of the flag. That's her main character moment π
π SEE ALSO π
Kernel file ./sound/soc/fsl/fsl_asrc.c and her whole friend group:
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_set_ideal_ratio(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)
π That's the page!! Sourced straight from ./sound/soc/fsl, dated October 2026, and she ate, no crumbs. Go configure those pairs, bestie ππ§β
π¦ 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