]> git.karo-electronics.de Git - karo-tx-linux.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)
commit141cfb1432f5c8e120d49229be52a32c8705afba
tree57c18d9dc7133ff42f3790b2bafc6943a2b72fe5
parent9d974e49339dc0ad9a6fbd7438a0887d7a445e29
[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