From: Tony Wan <wankai@sjtu.org>
To: mchehab@infradead.org, michael@mihu.de
Cc: video4linux-list@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] v4l: enlarge the size of ir-key table to 256
Date: Thu, 10 May 2007 11:05:39 +0800 [thread overview]
Message-ID: <1178766340.29993.44.camel@wankai.sjtu.org> (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-10 3:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 3:05 Tony Wan [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-09 7:50 [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=1178766340.29993.44.camel@wankai.sjtu.org \
--to=wankai@sjtu.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=michael@mihu.de \
--cc=video4linux-list@redhat.com \
/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®