rt5670_sel_asrc_clk_src(9)
π 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 π
- the kernel file
./sound/soc/codecs/rt5670.c(yes, the file AND everything below, bestie) π rt5670_headset_detect(9)π§set_dmic_clk(9)π€
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
- 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