upstream: [media] media: rc: add raw decoder for Sharp protocol
authorJames Hogan <james.hogan@imgtec.com>
Fri, 17 Jan 2014 13:58:48 +0000 (10:58 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:36 +0000 (11:54 +0900)
commit47f8dc7e12f67b94220059ae843d903f1ec02693
treee5968b73087cf12f19de74ef8b3c624b2810e1e7
parent48494aa428976a98769ac7baaf6050d57d7436c7
upstream: [media] media: rc: add raw decoder for Sharp protocol

Add a raw decoder for the Sharp protocol. It uses a pulse distance
modulation with a pulse of 320us and a bit period of 2ms for a logical 1
and 1ms for a logical 0. The first part of the message consists of a
5-bit address, an 8-bit command, and two other bits, followed by a 40ms
gap before the echo message which is an inverted version of the main
message except for the address bits.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: linux-media@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/Kconfig
drivers/media/rc/Makefile
drivers/media/rc/ir-sharp-decoder.c [new file with mode: 0644]
drivers/media/rc/rc-core-priv.h