MT2063_CalcLO2Mult(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– MT2063_CalcLO2Mult(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, we're in the kernel API manual and today's main character is MT2063_CalcLO2Mult. no cap, this little function is doing math so the tuner can tune. let's get into it ✨


🌸 NAME 🌸

MT2063_CalcLO2Mult β€” Calculates Integer divider value and the numerator value for a FracN PLL. πŸ’…

like, it literally hands you back the whole-number part and the fractional numerator so your FracN PLL knows what to do. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 MT2063_CalcLO2Mult (u32 *Div , u32 *FracN , u32 f_LO , u32 f_LO_Step
, u32 f_Ref );

she returns a u32, she takes five args, she's booked and busy. πŸ”₯


πŸ’œ ARGUMENTS πŸ’œ

  • Div β€” OUTPUT: Whole number portion of the multiplier. this is the integer girly of the whole operation πŸ‘‘
  • FracN β€” OUTPUT: Fractional portion of the multiplier. the little decimal bestie that tags along 🫢
  • f_LO β€” desired LO frequency. what we want, the dream 🌈
  • f_LO_Step β€” Minimum step size for the LO (in Hz). the smallest move she's allowed to make, fr fr πŸŽ€
  • f_Ref β€” SRO frequency. the reference point we're measuring against, iykyk ⭐
heads up: Div and FracN are both OUTPUT params β€” that's what those * are doing. she writes into them, she doesn't read them. πŸ’€ don't come for me, that's just how pointers work

✨ DESCRIPTION ✨

okay so the whole vibe here: this function assumes that f_LO and f_Ref are evenly divisible by f_LO_Step. that's the fine print, bestie, and it's load-bearing β€” the math is not checking your work for you πŸ™ˆ


πŸ“ RETURN πŸ“

Recalculated LO frequency. that's it, that's the return value, she's giving main character energy πŸ’–


🧚 SEE ALSO 🧚

go read those too, they're iconic in their own right πŸ’…


and that's the whole page, bestie β€” no cap, you ate that πŸŽ‰

source/version vibes: ./drivers/media/tuners β€” dated October 2026 🌸 mwah, see you in the next manpage 🫢

πŸ“¦ where this page comes from