]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Feb 2014 17:43:13 +0000 (15:43 -0200)
commit3266295c4af24d7d652f52552e65980a66aec47f
tree7d0820fc749cf846c0e55366e4254eb51d99a476
parent20ba968dbc799c4680ab101d387e5e1ef5dd58f6
[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