]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc: ir-rc6-decoder: Add encode capability
authorAntti Seppälä <a.seppala@gmail.com>
Tue, 31 Mar 2015 17:48:09 +0000 (14:48 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 14 May 2015 17:33:00 +0000 (14:33 -0300)
commited3656d6fdd28ebab0a3f554e766d98c9b7c0abd
treeca7c8f447c79d30f4ce85993b9a27e0f6c8d8ee0
parent41ee6df8fc96f5a53d88634f864bd110ce932c0e
[media] rc: ir-rc6-decoder: Add encode capability

Add the capability to encode RC-6 and RC-6A scancodes as raw events.
The protocol is chosen based on the specified protocol mask, and
whether all the required bits are set in the scancode mask, and none of
the unused bits are set in the scancode data.

The Manchester modulation helper is used several times with various
timings so that RC-6 header preamble, the header, header trailing bit
and the data itself can be modulated correctly.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>
Cc: James Hogan <james@albanarts.com>
Cc: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/ir-rc6-decoder.c