[media] rc: ir-rc5-decoder: Add encode capability
authorJames Hogan <james@albanarts.com>
Tue, 31 Mar 2015 17:48:08 +0000 (14:48 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 30 Jan 2017 15:50:52 +0000 (13:50 -0200)
commite9ab364a28c7ada075d6983946c08363df9c8a63
tree0c2446998dd3622de4bc33132616c910bae3d07b
parentcaec098477d228d44ae2266ee78a37bed070441a
[media] rc: ir-rc5-decoder: Add encode capability

Add the capability to encode RC-5, RC-5X and RC-5-SZ scancodes as raw
events.

The Manchester modulation helper is used, and for RC-5X it is used twice
with two sets of timings, the first with a short trailer space for the
space in the middle, and the second with no leader so that it can
continue the space.

The encoding in RC-5-SZ first inserts a pulse and then simply utilizes
the generic Manchester encoder available in rc-core.

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