[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-video
Subject:    [PATCH] ir-keymaps.c: extra keys on winfast Y04G0033 remote
From:       Michel Lespinasse <walken () zoy ! org>
Date:       2007-11-26 21:57:10
Message-ID: 20071126215710.GB31461 () zoy ! org
[Download RAW message or body]

I'm new here, let me know if I'm sending to the wrong place...

Signed-off-by: Michel Lespinasse <walken@zoy.org>

This change adds support for 4 extra keys on the remote currently being
shipped by leadtek with their "WinFast TV2000 XP/Expert" and
"WinFast PVR2000" cards. The remote P/N seems to be Y04G0033 and
you can see a picture of it here: http://lespinasse.org/y04g0033.jpg

The extra keys are at the bottom and are labeled MCE +VOL, -VOL, +CH, -CH.
I chose to map them to the F21-F24 keycodes, following the precedent of
ir_codes_gotview7135[], so as to differentiate these 'MCE' keys from the
other +VOL, -VOL, +CH, -CH 'arrow' keys higher up on the remote.

Signed-off-by: Michel Lespinasse <walken@zoy.org>
--- linux.orig/drivers/media/common/ir-keymaps.c	2007-11-19 13:49:41.000000000 -0800
+++ linux/drivers/media/common/ir-keymaps.c	2007-11-19 13:54:43.000000000 -0800
@@ -1333,6 +1333,11 @@
 	[ 0x36 ] = KEY_TV,
 	[ 0x37 ] = KEY_RADIO,         /* FM */
-	[ 0x38 ] = KEY_DVD
+	[ 0x38 ] = KEY_DVD,
+
+	[ 0x3e ] = KEY_F21,           /* MCE +VOL, on Y04G0033 */
+	[ 0x3a ] = KEY_F22,           /* MCE -VOL, on Y04G0033 */
+	[ 0x3b ] = KEY_F23,           /* MCE +CH,  on Y04G0033 */
+	[ 0x3f ] = KEY_F24            /* MCE -CH,  on Y04G0033 */
 };
 
 EXPORT_SYMBOL_GPL(ir_codes_winfast);

Thanks,

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic