wm8960_configure_pll(9)
π wm8960_configure_pll(9) β Kernel API Manual, but make it make sense π
okay bestie, so this is wm8960_configure_pll from the Kernel API Manual, and before you ask β yes, it's about the PLL out frequency, and yes, it's a vibe. buckle up π
β¨ NAME β¨
wm8960_configure_pll β literally just checks if there is a PLL out frequency available π
and the PLL out frequency must be chosen such that these three things are true, no cap:
sysclk = lrclk * dac_divsfreq_out = sysclk * sysclk_divs10 * sysclk = bclk * bclk_divs
that's the whole deal. that's the assignment. π«Ά
πΈ SYNOPSIS πΈ
int wm8960_configure_pll (struct snd_soc_component *component , int
freq_in , int *sysclk_idx , int *dac_idx , int *bclk_idx );
π¦ ARGUMENTS π¦
componentβ the component structure π§ just the component structure, she's doing her thingfreq_inβ the input frequency, used to derivefreq outvia the PLL β¨sysclk_idxβ thesysclk_divsindex for the foundsysclkπdac_idxβ thedac_divsindex for the foundlrclkπbclk_idxβ thebclk_divsindex for the foundbclkπ
π DESCRIPTION π
so here's the tea β β if we cannot find an exact match for the (sysclk, lrclk, bclk) triplet, we relax the bclk such that bclk is chosen as the closest available frequency greater than the expected bclk. it's giving "close enough is still iconic" energy. not exact? still slaying, just slightly to the right πβ¨
β RETURN β
< 0β in case no PLL frequency out available was found π that's a no from her>= 0β in case we could derivebclk,lrclk,sysclkfrom the PLL out using the(sysclk_idx, dac_idx, bclk_idx)dividers π periodt, that's the win
π₯ SEE ALSO π₯
- the Kernel file
./sound/soc/codecs/wm8960.cπ wm8960_configure_sysclk(9)β her sister function, go say hi π
aaand that's the page bestie, no notes π
so this whole thing lives in ./sound/soc/codecs, dated October 2026, and yeah β that's the version and the date, we love a timestamped slay. bye pookie, go configure that PLL πΈπ¦β¨
π¦ 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