STRUCT IMG_IR_CONTROL(9)
๐ 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 (seeIMG_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
- 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