Skip to contentSkip to conversation

v4l: Enlarge the size of IR-KEY table to 256

PATCH In review Tony Wan 1 participant 1 message May 9, 2007 Media (V4L/DVB)

lore
Share & tools
lore

Tony Wan

author
#0 lore raw

PATCH 3/3 v4l: Enlarge the size of IR-KEY table to 256

Some IR-remote will produce key codes larger than 128. Enlarge the size IR_KEYTAB_SIZE to 256 to enable all the keys.

---
 include/media/ir-common.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/media/ir-common.h +1 -1
index 4e4d207..5355ebc 100644
@@ -31,7 +31,7 @@
 #define IR_TYPE_OTHER  99
 
 #define IR_KEYTAB_TYPE	u32
-#define IR_KEYTAB_SIZE	128  // enougth for rc5, probably need more some day ...
+#define IR_KEYTAB_SIZE	256  // some remote needs 8-bit keycodes
 
 #define IR_KEYCODE(tab,code)	(((unsigned)code < IR_KEYTAB_SIZE) \
 				 ? tab[code] : KEY_RESERVED)