wm8960_configure_pll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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_divs
  • freq_out = sysclk * sysclk_divs
  • 10 * 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 thing
  • freq_in β€” the input frequency, used to derive freq out via the PLL ✨
  • sysclk_idx β€” the sysclk_divs index for the found sysclk πŸ’œ
  • dac_idx β€” the dac_divs index for the found lrclk πŸŽ€
  • bclk_idx β€” the bclk_divs index for the found bclk 🌈

πŸ’… 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 derive bclk, lrclk, sysclk from the PLL out using the (sysclk_idx, dac_idx, bclk_idx) dividers πŸŽ‰ periodt, that's the win

πŸ”₯ SEE ALSO πŸ”₯


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