diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-23 12:04:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-23 19:23:10 -0200 |
commit | b32e724308300a6ecead0f4895f0452a06a4291d (patch) | |
tree | cafdc5dc6a5036f3c0e54346a220845910929018 /drivers/media/rc/rc-core-priv.h | |
parent | 39cac3758f62c6495d954e0d7dc1ca7e69fa565d (diff) | |
download | linux-stable-b32e724308300a6ecead0f4895f0452a06a4291d.tar.gz linux-stable-b32e724308300a6ecead0f4895f0452a06a4291d.tar.bz2 linux-stable-b32e724308300a6ecead0f4895f0452a06a4291d.zip |
[media] rc: Add support for decoding Sanyo protocol
This protocol is found on Sanyo/Aiwa remotes.
Tested with an Aiwa RC-7AS06 remote control.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.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 c6ca870e8b7e..b72f8580e317 100644 --- a/drivers/media/rc/rc-core-priv.h +++ b/drivers/media/rc/rc-core-priv.h @@ -84,6 +84,11 @@ struct ir_raw_event_ctrl { unsigned count; unsigned wanted_bits; } rc5_sz; + struct sanyo_dec { + int state; + unsigned count; + u64 bits; + } sanyo; struct mce_kbd_dec { struct input_dev *idev; struct timer_list rx_timeout; @@ -193,6 +198,13 @@ static inline void load_jvc_decode(void) { } static inline void load_sony_decode(void) { } #endif +/* from ir-sanyo-decoder.c */ +#ifdef CONFIG_IR_SANYO_DECODER_MODULE +#define load_sanyo_decode() request_module("ir-sanyo-decoder") +#else +static inline void load_sanyo_decode(void) { } +#endif + /* from ir-mce_kbd-decoder.c */ #ifdef CONFIG_IR_MCE_KBD_DECODER_MODULE #define load_mce_kbd_decode() request_module("ir-mce_kbd-decoder") |