[media] rc: Add support for decoding XMP protocol
[pandora-kernel.git] / drivers / media / rc / rc-core-priv.h
index dea7aff..b68d4f7 100644 (file)
@@ -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 */