ir_sony_decode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ir_sony_decode(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual for ir_sony_decode β€” yes that's the manual name, we're in the kernel API manual section, and this little function is the moment. it's giving "one job, does it well" energy and honestly? obsessed. πŸŽ€


✨ NAME ✨

ir_sony_decode β€” decode one Sony pulse or space πŸ¦‹

like literally one. one pulse or one space. that's the whole gig. no cap.


✨ SYNOPSIS ✨

int ir_sony_decode (struct rc_dev *dev , struct ir_raw_event ev );

yes the spacing is exactly like that, do not come for me, I'm just the messenger πŸ’…


✨ ARGUMENTS ✨

  • dev β€” the struct rc_dev descriptor of the device. it's the main character of the remote-control universe, it holds the device info, and this function needs it 🫢
  • ev β€” the struct ir_raw_event descriptor of the pulse/space. this is the actual signal crumb being handed over for inspection 🌸

✨ DESCRIPTION ✨

so here's the tea: this function returns -EINVAL if the pulse violates the state machine. 😭

that's it. that's the whole description. it's a state machine soldier and it does not tolerate pulses that break the rules. vibe check failed = -EINVAL. periodt. ⭐


✨ SEE ALSO ✨

  • Kernel file ./drivers/media/rc/ir-sony-decoder.c β€” the source, go read it, it's iconic πŸ‘‘
  • ir_sony_encode(9) β€” the other half of the duo, the encoder to this decoder, fr fr πŸ”₯

so yeah, that's the page πŸ’œ go forth and decode responsibly. sending you the best vibes, mwah 🧚

β€” with love, from ./drivers/media/rc, dated October 2026 πŸŒˆπŸŽ€

πŸ“¦ where this page comes from