da7210_set_dai_pll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

da7210_set_dai_pll β€” bestie, this is the one that configures the codec PLL πŸ’… (part of the Kernel API Manual, okurrr)


πŸŽ€ SYNOPSIS πŸŽ€

int da7210_set_dai_pll (struct snd_soc_dai *codec_dai , int pll_id ,
                        int source , unsigned int fref , unsigned int fout );

🌸 ARGUMENTS 🌸

  • codec_dai β€” a pointer to the codec DAI, literally just handing you the DAI struct 🫢
  • pll_id β€” so the da7210 has only one pll, which means pll_id is always zero. no choices, no drama, one PLL and she's booked πŸ’€
  • source β€” the clock source, iykyk ⏰
  • fref β€” the MCLK frequency, and it should be < 20MHz. keep it under, bestie πŸ™ˆ
  • fout β€” the FsDM value. refer page 44 & 45 of the datasheet for this one, like actually go look πŸ‘‘

πŸ’‘ NOTE πŸ’‘

Bestie listen β€” the supported PLL input frequencies are 12MHz, 13MHz, 13.5MHz, 14.4MHz, 19.2MHz, 19.6MHz and 19.8MHz. those seven, and that's the whole guest list ⭐

πŸ”₯ RETURN πŸ”₯

Zero for success, and a negative error code if something went wrong 😭 (she's telling you, not ghosting you).


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./sound/soc/codecs/da7210.c β€” go read the source, it's giving main character energy πŸ‘‘


okay that's the whole page, no cap πŸ’– and if you ever need to find where this lives, it's in ./sound/soc/codecs, dated October 2026 β€” periodt, slay, go configure that PLL πŸŒˆπŸŽ€βœ¨

πŸ“¦ where this page comes from