sa1111_pll_clock(9)
π sa1111_pll_clock(9) π
okay so bestie, welcome to the Kernel API Manual β yes, the actual manual, we're doing this, and this little function is the main character today π
β¨ NAME β¨
sa1111_pll_clock β returns the current PLL clock frequency, no cap π
πΈ SYNOPSIS πΈ
unsigned int sa1111_pll_clock (struct sa1111_dev *sadev );
π¦ ARGUMENTS π¦
sadevβ the SA1111 function block, literally the thing you're passing in π«Ά
β DESCRIPTION β
so first thing, bestie, there's a BUG note right here and we're not gonna pretend it isn't: we should be looking at SKCR. that's the whole note. we should look at SKCR. we are not looking at SKCR. π
also β and this is the part where we're just being honest β we blindly believe that the chip is being fed with the 3.6864MHz clock. blindly. believe. no vibe check, no verification, just trust β¨
and then it returns the PLL clock in Hz π
π₯ SEE ALSO π₯
- Kernel file
./arch/arm/common/sa1111.cβ go read the source, iykyk sa1111_probe(9)sa1111_select_audio_mode(9)sa1111_set_audio_rate(9)sa1111_get_audio_rate(9)sa1111_enable_device(9)sa1111_disable_device(9)
ngl the whole family of sa1111 calls is right there, go be obsessed with all of them π
k byeee, this page lives in ./arch/arm/common, dated October 2026, and it's giving iconic kernel documentation energy ππ slay π
π¦ 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