]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc: ir-nec-decoder: Add encode capability
authorJames Hogan <james@albanarts.com>
Fri, 14 Mar 2014 23:04:14 +0000 (20:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 30 Jan 2017 15:52:28 +0000 (13:52 -0200)
commit7732c698920d62e5181a3bac5a108ce48f24a0e9
tree57c18d9dc7133ff42f3790b2bafc6943a2b72fe5
parent9e200b1cf49aab63445f60508b856f76f7d255c6
[media] rc: ir-nec-decoder: Add encode capability

Add the capability to encode NEC scancodes as raw events. The
scancode_to_raw is pretty much taken from the img-ir NEC filter()
callback, and modulation uses the pulse distance helper added in a
previous commit.

Signed-off-by: James Hogan <james@albanarts.com>
Signed-off-by: Sean Young <sean@mess.org>
Cc: Antti Seppälä <a.seppala@gmail.com>
Cc: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-nec-decoder.c