aio_chip_set_pll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– aio_chip_set_pll(9) πŸ’–

okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it's a baddie. we're setting the frequency on the audio PLL. that's it, that's the vibe. let's get into it ✨


πŸŽ€ NAME πŸŽ€

aio_chip_set_pll β€” set frequency to audio PLL πŸ’…


✨ SYNOPSIS ✨

int aio_chip_set_pll (struct uniphier_aio_chip *chip , int pll_id ,
unsigned int freq );

literally the whole signature, no notes, she ate 🫢


🌸 ARGUMENTS 🌸

  • chip β€” the AIO chip pointer πŸ‘‘ like, the main character struct itself
  • pll_id β€” PLL πŸ”₯ which one we're talking to
  • freq β€” frequency in Hz, and ngl 0 is ignored πŸ™ˆ (yeah, zero just gets skipped, don't come for her)

πŸ¦‹ DESCRIPTION πŸ¦‹

Sets the frequency of the audio PLL. periodt πŸ’œ

the cute part: this function can be called anytime β€” no gatekeeping, no special window, call it whenever. but ⚠️ it takes time till the PLL is locked. so like, don't expect it to be instantly locked and ready, she needs a minute to settle. lowkey important, don't ignore that part fr fr 😭


⭐ RETURN ⭐

  • Zero if successful πŸŽ‰
  • otherwise a negative value on error πŸ’€

so yeah, check your return value, bestie, it's giving "trust but verify" 🌈


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./sound/soc/uniphier/aio-core.c πŸ’– plus the whole friend group:

like a whole group chat of audio functions, iykyk πŸ’…


reminder bestie: freq of 0 gets ignored, and the PLL lock isn't instant β€” those are the two things you'll actually trip over πŸ“

and that's the page!! brought to you by the source/version <rainbow>./sound/soc/uniphier</rainbow>, dated <bold>October 2026</bold> πŸ“…πŸ’œ mwah, go lock that PLL, you got this 🧚✨

πŸ“¦ where this page comes from