[linux-dvb] WinTV NovaT remote keys - num keys only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simon Baxter wrote:
> I defined those codes in the video4linux separate build, as per the 
> bytesex download

Well, I got the silly bugger working by adding keydefinitions
to cx88-input.c,  this is in kernel 2.6.11 patched with bytesex
-----
/* Hauppauge: still newer 45-key, gray remote */
static IR_KEYTAB_TYPE ir_codes_hauppauge_new_45[IR_KEYTAB_SIZE] = {
         [ 0x00 ] = KEY_KP0,             // 0
         [ 0x01 ] = KEY_KP1,             // 1
         [ 0x02 ] = KEY_KP2,             // 2
         [ 0x03 ] = KEY_KP3,             // 3
         [ 0x04 ] = KEY_KP4,             // 4
         [ 0x05 ] = KEY_KP5,             // 5
         [ 0x06 ] = KEY_KP6,             // 6
         [ 0x07 ] = KEY_KP7,             // 7
         [ 0x08 ] = KEY_KP8,             // 8
         [ 0x09 ] = KEY_KP9,             // 9
         [ 0x0a ] = KEY_TEXT,            // text
         [ 0x0b ] = KEY_RED,             // red button
         [ 0x0c ] = KEY_RADIO,           // radio
         [ 0x0d ] = KEY_MENU,            // menu
         [ 0x0e ] = KEY_SUBTITLE,        // sub/cc
         [ 0x0f ] = KEY_MUTE,            // mute
         [ 0x10 ] = KEY_VOLUMEUP,        // volume +
         [ 0x11 ] = KEY_VOLUMEDOWN,      // volume -
         [ 0x12 ] = KEY_CHANNEL,         // prev.ch

         [ 0x14 ] = KEY_UP,              // up
         [ 0x15 ] = KEY_DOWN,            // down
         [ 0x16 ] = KEY_LEFT,            // left
         [ 0x17 ] = KEY_RIGHT,           // right
         [ 0x18 ] = KEY_VIDEO,           // videos
         [ 0x19 ] = KEY_MP3,             // music
         [ 0x1a ] = KEY_CAMERA,          // pictures
         [ 0x1b ] = KEY_INFO,            // guide
         [ 0x1c ] = KEY_TV,              // tv

         [ 0x1e ] = KEY_NEXT,            // skip >|
         [ 0x1f ] = KEY_EXIT,            // back/exit
         [ 0x20 ] = KEY_CHANNELUP,       // channel / program +
         [ 0x21 ] = KEY_CHANNELDOWN,     // channel / program -
         [ 0x24 ] = KEY_PREVIOUS,        // replay |<
         [ 0x25 ] = KEY_ENTER,           // OK
         [ 0x29 ] = KEY_BLUE,            // blue key
         [ 0x2e ] = KEY_GREEN,           // green button
         [ 0x30 ] = KEY_PAUSE,           // pause
         [ 0x32 ] = KEY_REWIND,          // backward <<
         [ 0x34 ] = KEY_FASTFORWARD,     // forward >>
         [ 0x35 ] = KEY_PLAY,            // play
         [ 0x36 ] = KEY_STOP,            // stop
         [ 0x37 ] = KEY_RECORD,          // recording
         [ 0x38 ] = KEY_YELLOW,          // yellow key
         [ 0x3b ] = KEY_SELECT,          // go
         [ 0x3d ] = KEY_POWER,           // system power (green button)
};
-----
Then also fixed references to tables further on
----
     case CX88_BOARD_HAUPPAUGE_DVB_T1:
         ir_codes         = ir_codes_hauppauge_new_45;
         ir_type          = IR_TYPE_RC5;
         ir->sampling     = 1;
         break;
     case CX88_BOARD_WINFAST2000XP_EXPERT:
/*      ir_codes         = ir_codes_winfast;  */
         ir_codes         = ir_codes_hauppauge_new_45;
         ir->gpio_addr    = MO_GP0_IO;
         ir->mask_keycode = 0x8f8;
         ir->mask_keyup   = 0x100;
         ir->polling      = 1; // ms
         break;
----

-- 
lwgt@xxxxxx  * Using HTML-mail is like breaking wind in a church *
60.2N 24.7E  *   it is not illegal, just extremely bad manners   *



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux