MT2063_CalcLO2Mult(9)
π 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:DivandFracNare 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 π§
- Kernel file
./drivers/media/tuners/mt2063.c IsSpurInBand(9)mt2063_lockStatus(9)MT2063_fLO_FractionalTerm(9)
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
- 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