STRUCT VIDTV_DEMOD_CNR_TO_QUAL_S(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct vidtv...nr_to_qual_s(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual β€” yes we're literally in the kernel docs rn, and no this isn't the scary part, i promise 🫢


✨ NAME ✨

struct vidtv_demod_cnr_to_qual_s β€” the little struct whose whole entire job is mapping CNR values to a given combo of modulation and fec_inner. it's giving matchmaker but for signal quality πŸ’…


🌸 SYNOPSIS 🌸

struct vidtv_demod_cnr_to_qual_s {
    u32 modulation;
    u32 fec;
    u32 cnr_ok;
    u32 cnr_good;
 };

like, that's it. four lil u32s. lowkey iconic πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • modulation β€” see enum fe_modulation for what this one's about ✨
  • fec β€” see enum fe_fec_rate, yep, that's the one 🌈
  • cnr_ok β€” the S/N threshold where we go "okay the signal is OK". and listen β€” if you dip below this, there's a chance of losing sync. not me warning you, that's just the docs 😭
  • cnr_good β€” the S/N threshold where the signal is officially strong and we can all relax πŸ’–

πŸ’œ Description πŸ’œ

so this struct matches up the 'good' and 'ok' CNR values, given whatever combination of modulation and fec_inner you're running. and yes β€” we might simulate some noise if the signal quality is not too good. dramatic? maybe. accurate? yes πŸ™ˆ

the values were taken from libdvbv5, so you know they're not just vibes, they're sourced vibes ✨


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/media/test-drivers/vidtv/vidtv_demod.h β€” go read it bestie, iykwim πŸ’…
  • struct vidtv_demod_config(9)
  • struct vidtv_demod_state(9)

that's the whole page, no cap πŸ“ this little guy lives at ./drivers/media/test-drivers/v... and the docs are dated October 2026 β€” so yes, we're reading from the future, main character energy fr fr β­πŸ’€

k byeee, go fix your signal, you got this πŸ’–πŸ§šπŸŽ€

πŸ“¦ where this page comes from