]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitcf257e288ad3a134d4bb809c542a3ae6c87ddfa3
treeca7c8f447c79d30f4ce85993b9a27e0f6c8d8ee0
parenta0466f15b4654cf1ac9e387d7c1a401eff494b4f
[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