fsl_asrc_config_pair(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


πŸ’œ 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