diff options
author | Marcel J.E. Mol <marcel@mesa.nl> | 2014-07-26 17:28:26 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-26 19:38:04 -0300 |
commit | 1dee9b59d69a15d566c16ee6fbd7216108ad5cac (patch) | |
tree | 75d5c4bba63dfba3b04cb2d7178f2c1834242eb9 /drivers/media/rc/rc-core-priv.h | |
parent | 0a6824bc10de58dac8beca4ad6744753f1cf9a6f (diff) | |
download | linux-1dee9b59d69a15d566c16ee6fbd7216108ad5cac.tar.gz linux-1dee9b59d69a15d566c16ee6fbd7216108ad5cac.tar.bz2 linux-1dee9b59d69a15d566c16ee6fbd7216108ad5cac.zip |
[media] rc: Add support for decoding XMP protocol
This protocol is found on Dreambox remotes
[m.chehab@samsung.com: CodingStyle fixes and conflict fix]
Signed-off-by: Marcel Mol <marcel@mesa.nl>
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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/rc/rc-core-priv.h b/drivers/media/rc/rc-core-priv.h index dea7aff15a35..b68d4f762734 100644 --- a/drivers/media/rc/rc-core-priv.h +++ b/drivers/media/rc/rc-core-priv.h @@ -110,6 +110,11 @@ struct ir_raw_event_ctrl { bool send_timeout_reports; } lirc; + struct xmp_dec { + int state; + unsigned count; + u32 durations[16]; + } xmp; }; /* macros for IR decoders */ @@ -225,5 +230,12 @@ static inline void load_mce_kbd_decode(void) { } static inline void load_lirc_codec(void) { } #endif +/* from ir-xmp-decoder.c */ +#ifdef CONFIG_IR_XMP_DECODER_MODULE +#define load_xmp_decode() request_module_nowait("ir-xmp-decoder") +#else +static inline void load_xmp_decode(void) { } +#endif + #endif /* _RC_CORE_PRIV */ |