img_ir_set_decoder(9)
π img_ir_set_decoder(9) π
okay bestie, welcome to the kernel API manual β this one's a lil function from the img-ir drivers, and honestly? she's short but she's powerful. no cap.
β¨ NAME β¨
img_ir_set_decoder β sets the current decoder. that's it. that's the whole vibe. she swaps in whichever decoder is supposed to be running right now, and she does it with immediate effect π«Ά
πΈ SYNOPSIS πΈ
void img_ir_set_decoder (struct img_ir_priv *priv , const struct
img_ir_decoder *decoder , u64 proto );
like yeah it returns void β she doesn't gossip back, she just does the thing π
π¦ ARGUMENTS π¦
privβ the IR private data. the personal stash. the main character struct everything hangs off of πdecoderβ the decoder to use, and bestie listen: with immediate effect. not "next time", not "after a reboot", now. π₯protoβ a protocol bitmap. and if you pass0, she'll lowkey just fall back todecoder->typeinstead. iykyk π
π SEE ALSO π
the kernel file lives at ./drivers/media/rc/img-ir/img-ir-hw.c β go read it if you're feeling nerdy, no judgment π. and here's the whole friend group, all of them, in order, not skipping a single one:
img_ir_control(9)img_ir_timing_range_convert(9)img_ir_symbol_timing(9)img_ir_free_timing(9)img_ir_free_timing_dynamic(9)img_ir_timings_convert(9)img_ir_decoder_preprocess(9)img_ir_decoder_convert(9)img_ir_write_timings(9)img_ir_decoder_compatible(9)img_ir_allowed_protos(9)img_ir_enable_wake(9)img_ir_disable_wake(9)img_ir_probe_hw_caps(9)
β¨ friendly reminder: decoder takes effect immediately, so don't be out here passing something half-baked and then acting surprised. π«Ά
and that's the page, bestie ππ this one's brought to you by the source at ./drivers/media/rc/img-ir, dated October 2026 β see you in the next img_ir_set_decoder(9) era, mwah ππ§ββοΈ
π¦ 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