STRUCT IMG_IR_CONTROL(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŽ€ NAME ๐ŸŽ€

okay bestie, welcome to the Kernel API Manual โ€” todayโ€™s main character is struct img_ir_control(9), aka Decoder control settings โœจ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

       struct img_ir_control {
           unsigned decoden:1;
           unsigned code_type:2;
           unsigned hdrtog:1;
           unsigned ldrdec:1;
           unsigned decodinpol:1;
           unsigned bitorien:1;
           unsigned d1validsel:1;
           unsigned bitinv:1;
           unsigned decodend2:1;
           unsigned bitoriend2:1;
           unsigned bitinvd2:1;
        };

๐Ÿ’… Members ๐Ÿ’…

  • decoden โ€” Primary decoder enable. the โ€œturn it onโ€ bit, periodt ๐Ÿ’–
  • code_type โ€” Decode type (see IMG_IR_CODETYPE_*) โ€” yes, go peep those constants, iykyk.
  • hdrtog โ€” Detect header toggle symbol after leader symbol. itโ€™s giving โ€œlook for the toggle after the leaderโ€ energy.
  • ldrdec โ€” Don't discard leader if maximum width reached. so if max width hits, the leader stays โ€” no yeeting ๐Ÿ™ˆ
  • decodinpol โ€” Decoder input polarity (1=active high). literally that.
  • bitorien โ€” Bit orientation (1=MSB first). slay, most significant bit first.
  • d1validsel โ€” Decoder 2 takes over if it detects valid data. decoder 2 said โ€œi got thisโ€ ๐Ÿ‘‘
  • bitinv โ€” Bit inversion switch (1=don't invert). switch behavior, no cap.
  • decodend2 โ€” Secondary decoder enable (no leader symbol). second decoder, and no leader symbol in the mix.
  • bitoriend2 โ€” Bit orientation (1=MSB first). same vibe, secondary-decoder edition.
  • bitinvd2 โ€” Secondary decoder bit inversion switch (1=don't invert). yep, that exact switch.

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

Kernel file ./drivers/media/rc/img-ir/img-ir-hw.h โ€” go look, bestie ๐Ÿ‘€

  • struct img_ir_timing_range(9)
  • struct img_ir_symbol_timing(9)
  • struct img_ir_free_timing(9)
  • struct img_ir_timings(9)
  • struct img_ir_filter(9)
  • struct img_ir_timing_regvals(9)
  • struct img_ir_scancode_req(9)
  • struct img_ir_decoder(9)
  • struct img_ir_reg_timings(9)
  • struct img_ir_priv_hw(9)

this page comes from the source/version path ./drivers/media/rc/img-ir, dated October 2026, and itโ€™s chillinโ€™ in the kernel file ./drivers/media/rc/img-ir/img-ir-hw.h โ€” mwah, iconic ๐Ÿ’‹โœจ

๐Ÿ“ฆ where this page comes from