From 63ebeac72acfb0848c3de3497babd9ee99322e5d Mon Sep 17 00:00:00 2001 From: Derek Rachul Date: Sun, 25 Nov 2012 22:21:22 -0800 Subject: [PATCH] Removed 'MCE' customer code restriction in command decoding to allow for other compatible remotes. --- ...tomer-code-restriction-in-rc6-decode.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/linux/patches/linux-3.6.7-921-Removed-MCE-customer-code-restriction-in-rc6-decode.patch diff --git a/packages/linux/patches/linux-3.6.7-921-Removed-MCE-customer-code-restriction-in-rc6-decode.patch b/packages/linux/patches/linux-3.6.7-921-Removed-MCE-customer-code-restriction-in-rc6-decode.patch new file mode 100644 index 0000000000..9f84e6659f --- /dev/null +++ b/packages/linux/patches/linux-3.6.7-921-Removed-MCE-customer-code-restriction-in-rc6-decode.patch @@ -0,0 +1,22 @@ +--- linux/drivers/media/rc/ir-rc6-decoder.c 2012-11-25 22:08:13.148418669 -0800 ++++ linux.patch/drivers/media/rc/ir-rc6-decoder.c 2012-11-25 22:07:48.864417975 -0800 +@@ -39,7 +39,6 @@ + #define RC6_STARTBIT_MASK 0x08 /* for the header bits */ + #define RC6_6A_MCE_TOGGLE_MASK 0x8000 /* for the body bits */ + #define RC6_6A_LCC_MASK 0xffff0000 /* RC6-6A-32 long customer code mask */ +-#define RC6_6A_MCE_CC 0x800f0000 /* MCE customer code */ + #ifndef CHAR_BIT + #define CHAR_BIT 8 /* Normally in */ + #endif +@@ -242,9 +241,8 @@ again: + } + + scancode = data->body; +- if (data->count == RC6_6A_32_NBITS && +- (scancode & RC6_6A_LCC_MASK) == RC6_6A_MCE_CC) { +- /* MCE RC */ ++ if (data->count == RC6_6A_32_NBITS) { ++ /* MCE compatible RC */ + toggle = (scancode & RC6_6A_MCE_TOGGLE_MASK) ? 1 : 0; + scancode &= ~RC6_6A_MCE_TOGGLE_MASK; + } else {