From: Tony Wan <wankai@sjtu.org>
To: michael@mihu.de, linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] v4l: Enlarge the size of IR-KEY table to 256
Date: Wed, 09 May 2007 15:50:01 +0800 [thread overview]
Message-ID: <1178697001.30673.1.camel@localhost.localdomain> (raw)
Some IR-remote will produce key codes larger than 128. Enlarge the size
IR_KEYTAB_SIZE to 256 to enable all the keys.
Signed-off-by: Tony Wan <wankai@sjtu.org>
---
include/media/ir-common.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/media/ir-common.h b/include/media/ir-common.h
index 4e4d207..5355ebc 100644
--- a/include/media/ir-common.h
+++ b/include/media/ir-common.h
@@ -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)
next reply other threads:[~2007-05-09 0:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 7:50 Tony Wan [this message]
2007-05-10 3:05 [PATCH 3/3] v4l: enlarge the size of ir-key " Tony Wan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1178697001.30673.1.camel@localhost.localdomain \
--to=wankai@sjtu.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@mihu.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®