[linux-dvb] [PATCH] duplicate RC keycodes in dvb-usb-a800/AVerMedia DVB-T USB2

Thorsten Maerz torte at netztorte.de
Sat Sep 17 13:40:18 CEST 2005


The duplicate key definitions cause misinterpretations with
other keys, e.g. the "TELETEXT" key clashes with "CHANNEL_UP"
and thus can not be used with LIRC.
Attached patch (a800-lircfix.diff) removes these dupes.

Signed-off-by: Thorsten Maerz <torte at netztorte.de>

(using current CVS dvb-kernel sources + kernel-2.6.13.1)

Best regards,
-- 
Thorsten Maerz          <torte at netztorte.de>
Sylpheed-claws/Win32:   http://claws-w32.sf.net
-------------- next part --------------
Index: linux/drivers/media/dvb/dvb-usb/a800.c
===================================================================
RCS file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/dvb-usb/a800.c,v
retrieving revision 1.10
diff -u -r1.10 a800.c
--- linux/drivers/media/dvb/dvb-usb/a800.c      16 Aug 2005 10:11:24 -0000      1.10
+++ linux/drivers/media/dvb/dvb-usb/a800.c      17 Sep 2005 09:52:21 -0000
@@ -43,11 +43,9 @@
        { 0x02, 0x13, KEY_RIGHT },       /* R / CH RTN */
        { 0x02, 0x17, KEY_PROG2 },       /* SNAP SHOT */
        { 0x02, 0x10, KEY_PROG3 },       /* 16-CH PREV */
-       { 0x02, 0x03, KEY_CHANNELUP },   /* CH UP */
        { 0x02, 0x1e, KEY_VOLUMEDOWN },  /* VOL DOWN */
        { 0x02, 0x0c, KEY_ZOOM },        /* FULL SCREEN */
        { 0x02, 0x1f, KEY_VOLUMEUP },    /* VOL UP */
-       { 0x02, 0x02, KEY_CHANNELDOWN }, /* CH DOWN */
        { 0x02, 0x14, KEY_MUTE },        /* MUTE */
        { 0x02, 0x08, KEY_AUDIO },       /* AUDIO */
        { 0x02, 0x19, KEY_RECORD },      /* RECORD */
@@ -57,8 +55,6 @@
        { 0x02, 0x1d, KEY_BACK },        /* << / RED */
        { 0x02, 0x1c, KEY_FORWARD },     /* >> / YELLOW */
        { 0x02, 0x03, KEY_TEXT },        /* TELETEXT */
-       { 0x02, 0x01, KEY_FIRST },       /* |<< / GREEN */
-       { 0x02, 0x00, KEY_LAST },        /* >>| / BLUE */
        { 0x02, 0x04, KEY_EPG },         /* EPG */
        { 0x02, 0x15, KEY_MENU },        /* MENU */




More information about the linux-dvb mailing list