diff options
author | James Hogan <james.hogan@imgtec.com> | 2014-01-17 10:58:48 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-02-04 15:43:13 -0200 |
commit | 1d184b0bc13d49108e571033fc00f3b5f32670e1 (patch) | |
tree | 7d0820fc749cf846c0e55366e4254eb51d99a476 /drivers/media/rc/rc-core-priv.h | |
parent | 38f2a214351ced1b32164da085a879d860011dcf (diff) | |
download | talos-obmc-linux-1d184b0bc13d49108e571033fc00f3b5f32670e1.tar.gz talos-obmc-linux-1d184b0bc13d49108e571033fc00f3b5f32670e1.zip |
[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>
Diffstat (limited to 'drivers/media/rc/rc-core-priv.h')
-rw-r--r-- | drivers/media/rc/rc-core-priv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-core-priv.h b/drivers/media/rc/rc-core-priv.h index 70a180bb0bd0..c40d6660acac 100644 --- a/drivers/media/rc/rc-core-priv.h +++ b/drivers/media/rc/rc-core-priv.h @@ -88,6 +88,12 @@ struct ir_raw_event_ctrl { unsigned count; u64 bits; } sanyo; + struct sharp_dec { + int state; + unsigned count; + u32 bits; + unsigned int pulse_len; + } sharp; struct mce_kbd_dec { struct input_dev *idev; struct timer_list rx_timeout; |