[media] az6007: Use the right keycode for Terratec H7
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 21 Jan 2012 15:41:21 +0000 (12:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 21 Jan 2012 15:47:15 +0000 (13:47 -0200)
Instead of using a fake keycode, just for testing, use the
right one, for Terratec H7.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/az6007.c
drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.c

index 2288916a2a4acbabbc33c5eacfec744386fc6461..14733b84e8b8b57097ec9f9fed1f6f9656b5d826 100644 (file)
@@ -521,7 +521,7 @@ static struct dvb_usb_device_properties az6007_properties = {
 
        .rc.core = {
                .rc_interval      = 400,
-               .rc_codes         = RC_MAP_DIB0700_NEC_TABLE,
+               .rc_codes         = RC_MAP_NEC_TERRATEC_CINERGY_XS,
                .module_name      = "az6007",
                .rc_query         = az6007_rc_query,
                .allowed_protos   = RC_TYPE_NEC,
index f3b86c8db67963d4a2e223cfbcaf42261b4ff9e1..8d4dae2e2ece720c1073875dadef5177aba330a3 100644 (file)
@@ -18,6 +18,8 @@
  */
 
 static struct rc_map_table nec_terratec_cinergy_xs[] = {
+
+       /* Terratec Grey IR, with most keys in orange */
        { 0x1441, KEY_HOME},
        { 0x1401, KEY_POWER2},
 
@@ -78,6 +80,56 @@ static struct rc_map_table nec_terratec_cinergy_xs[] = {
        { 0x144e, KEY_REWIND},
        { 0x144f, KEY_FASTFORWARD},
        { 0x145c, KEY_NEXT},
+
+       /* Terratec Black IR, with most keys in black */
+       { 0x04eb01, KEY_POWER2},
+
+       { 0x04eb02, KEY_1},
+       { 0x04eb03, KEY_2},
+       { 0x04eb04, KEY_3},
+       { 0x04eb05, KEY_4},
+       { 0x04eb06, KEY_5},
+       { 0x04eb07, KEY_6},
+       { 0x04eb08, KEY_7},
+       { 0x04eb09, KEY_8},
+       { 0x04eb0a, KEY_9},
+       { 0x04eb0c, KEY_0},
+
+       { 0x04eb0b, KEY_TEXT},          /* TXT */
+       { 0x04eb0d, KEY_REFRESH},       /* Refresh */
+
+       { 0x04eb0e, KEY_HOME},
+       { 0x04eb0f, KEY_EPG},
+
+       { 0x04eb10, KEY_UP},
+       { 0x04eb11, KEY_LEFT},
+       { 0x04eb12, KEY_OK},
+       { 0x04eb13, KEY_RIGHT},
+       { 0x04eb14, KEY_DOWN},
+
+       { 0x04eb15, KEY_BACKSPACE},
+       { 0x04eb16, KEY_INFO},
+
+       { 0x04eb17, KEY_RED},
+       { 0x04eb18, KEY_GREEN},
+       { 0x04eb19, KEY_YELLOW},
+       { 0x04eb1a, KEY_BLUE},
+
+       { 0x04eb1c, KEY_VOLUMEUP},
+       { 0x04eb1e, KEY_VOLUMEDOWN},
+
+       { 0x04eb1d, KEY_MUTE},
+
+       { 0x04eb1b, KEY_CHANNELUP},
+       { 0x04eb1f, KEY_CHANNELDOWN},
+
+       { 0x04eb40, KEY_RECORD},
+       { 0x04eb4c, KEY_PLAY},
+       { 0x04eb58, KEY_PAUSE},
+
+       { 0x04eb54, KEY_REWIND},
+       { 0x04eb48, KEY_STOP},
+       { 0x04eb5c, KEY_NEXT},
 };
 
 static struct rc_map_list nec_terratec_cinergy_xs_map = {