From: Gerd Knorr <kraxel@bytesex.org>
To: Andrew Morton <akpm@osdl.org>,
Kernel List <linux-kernel@vger.kernel.org>
Subject: [patch] v4l: ir-common update
Date: Fri, 18 Jun 2004 11:24:28 +0200 [thread overview]
Message-ID: <20040618092428.GA23903@bytesex.org> (raw)
Hi,
Some minor changes for the ir-common module: Update for the RC5
keytable and increase the IR_KEYTAB_SIZE #define.
Gerd
diff -up linux-2.6.7/drivers/media/common/ir-common.c linux/drivers/media/common/ir-common.c
--- linux-2.6.7/drivers/media/common/ir-common.c 2004-06-17 10:30:08.000000000 +0200
+++ linux/drivers/media/common/ir-common.c 2004-06-17 13:47:59.151391710 +0200
@@ -75,6 +75,8 @@ IR_KEYTAB_TYPE ir_codes_rc5_tv[IR_KEYTAB
[ 0x35 ] = KEY_PLAY, // play
[ 0x36 ] = KEY_STOP, // stop
[ 0x37 ] = KEY_RECORD, // recording
+ [ 0x3c ] = KEY_TEXT, // teletext submode (Japan: 12)
+ [ 0x3d ] = KEY_SUSPEND, // system standby
#if 0 /* FIXME */
[ 0x0a ] = KEY_RESERVED, // 1/2/3 digits (japan: 10)
@@ -106,8 +108,6 @@ IR_KEYTAB_TYPE ir_codes_rc5_tv[IR_KEYTAB
[ 0x39 ] = KEY_RESERVED, // external 2
[ 0x3a ] = KEY_RESERVED, // PIP display mode
[ 0x3b ] = KEY_RESERVED, // view data mode / advance
- [ 0x3c ] = KEY_RESERVED, // teletext submode (Japan: 12)
- [ 0x3d ] = KEY_RESERVED, // system standby
[ 0x3e ] = KEY_RESERVED, // crispener on/off
[ 0x3f ] = KEY_RESERVED, // system select
#endif
diff -up linux-2.6.7/include/media/ir-common.h linux/include/media/ir-common.h
--- linux-2.6.7/include/media/ir-common.h 2004-06-17 10:30:48.000000000 +0200
+++ linux/include/media/ir-common.h 2004-06-17 13:47:59.153391334 +0200
@@ -27,7 +27,7 @@
#define IR_TYPE_OTHER 99
#define IR_KEYTAB_TYPE u32
-#define IR_KEYTAB_SIZE 64 // enougth for rc5, probably need more some day ...
+#define IR_KEYTAB_SIZE 128 // enougth for rc5, probably need more some day ...
#define IR_KEYCODE(tab,code) (((unsigned)code < IR_KEYTAB_SIZE) \
? tab[code] : KEY_RESERVED)
--
Smoking Crack Organization
reply other threads:[~2004-06-18 9:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040618092428.GA23903@bytesex.org \
--to=kraxel@bytesex.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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