wm8960_configure_sysclk(9)
π wm8960_configure_sysclk(9) π
okay so this is a page from the Kernel API Manual bestie, and it's all about wm8960_configure_sysclk β literally the function that checks if there's a sysclk frequency available for you. π
β¨ NAME β¨
wm8960_configure_sysclk β checks if there is a sysclk frequency available πΈ
The sysclk must be chosen such that:
sysclk = MCLK / sysclk_divslrclk = sysclk / dac_divs10 * bclk = sysclk / bclk_divs
like, those three relationships are the whole vibe check. no cap. π¦
π SYNOPSIS π
int wm8960_configure_sysclk (struct wm8960_priv *wm8960 , int mclk , int
*sysclk_idx , int *dac_idx , int *bclk_idx );
π«Ά ARGUMENTS π«Ά
wm8960β the codec private data, i.e. the main character's personal info πmclkβ the MCLK that's used to derive sysclk, the raw ingredient basically β¨sysclk_idxβ thesysclk_divsindex for the found sysclk πdac_idxβ thedac_divsindex for the found lrclk πbclk_idxβ thebclk_divsindex for the found bclk π
π₯ RETURN π₯
-1β in case no sysclk frequency available is found π (sad girl hours)>=0β in case we could derive bclk and lrclk from sysclk using the (sysclk_idx,dac_idx,bclk_idx) dividers π slay!!
fr fr, that >=0 is the good ending β it means all three divider indices got filled in and everything lines up π
π SEE ALSO π
- Kernel file
./sound/soc/codecs/wm8960.cπ wm8960_configure_pll(9)β its sibling, go read that one too π§
and that's the whole page, bestie!! tysm for reading π this little gem lives in ./sound/soc/codecs and the version on the tin is dated October 2026 β catch you in the next manpage, mwah πβ¨π
π¦ 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