da7210_set_dai_pll(9)
β¨ 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 meanspll_idis 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 are12MHz,13MHz,13.5MHz,14.4MHz,19.2MHz,19.6MHzand19.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
- 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