rt5670_sel_asrc_clk_src(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rt5670_sel_asrc_clk_src β€” the Kernel API Manual, bestie edition ✨

okay so this is a page straight outta the Kernel API Manual, and it's all about rt5670_sel_asrc_clk_src πŸŽ€ buckle up, it's actually so good.


🌸 NAME 🌸

rt5670_sel_asrc_clk_src β€” literally the function that selects the ASRC clock source for a whole set of filters πŸ¦‹


✨ SYNOPSIS ✨

int rt5670_sel_asrc_clk_src (struct snd_soc_component *component ,
unsigned int filter_mask , unsigned int clk_src );

that's the whole vibe, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • component β€” the SoC audio component device. iconic. necessary. main character 🫢
  • filter_mask β€” a mask of filters πŸ’« yes, a mask, of the filter variety.
  • clk_src β€” the clock source ⏰ the whole point, honestly.

πŸ”₯ DESCRIPTION πŸ”₯

okay so picture this: the ASRC function exists for asynchronous MCLK and LRCK 😭 asynchronous clocks, we've all been there.

also β€” and this part matters β€” since the RT5670 can only support standard 32fs or 64fs i2s format, ASRC should be enabled to support special i2s clock formats such as Intel's 100fs (100 * sampling rate) 🌈 like, that's the whole reason it's here.

what ASRC does is track the i2s clock and generate a corresponding system clock for the codec πŸ•°οΈβœ¨ cute little clock matchmaker.

and this function? it provides an API to select the clock source for a set of filters specified by the mask 🎯 and the codec driver will turn on ASRC for those filters if ASRC is selected as their clock source. conditional queen πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘


ngl, if you're touching ASRC and MCLK/LRCK at the same time, keep this one bookmarked. it's giving essential. πŸ’–

and that's the page, bestie 🧚 from the lovely folks at ./sound/soc/codecs, dated October 2026, in the Kernel API Manual β€” this has been rt5670_sel_asrc_clk_src(9), slay, periodt, go read your clocks πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from