diff options
author | Devin Heitmueller <dheitmueller@linuxtv.org> | 2009-08-03 22:56:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:18:52 -0400 |
commit | 8cd9aaefad5968f8f5aff3852a67870550ce941d (patch) | |
tree | e44c776bf722bd789bc0d765b12f75283ff10a8b | |
parent | 4d14c833c0d5f926721da1e0b07287ab8b64f0ba (diff) |
V4L/DVB (12444): em28xx: add support for Terratec Cinergy Hybrid T USB XS remote control
Add support for the remote control that comes with the Cinergy Hybrid T USB XS
Thanks to Jelle de Jong for providing sample hardware to test with.
Cc: Jelle de Jong <jelledejong@powercraft.nl>
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 55 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 2 | ||||
-rw-r--r-- | include/media/ir-common.h | 1 |
3 files changed, 58 insertions, 0 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index 4216328552f6..58d3e54db5a5 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -2751,6 +2751,61 @@ IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE] = { | |||
2751 | }; | 2751 | }; |
2752 | EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec); | 2752 | EXPORT_SYMBOL_GPL(ir_codes_dm1105_nec); |
2753 | 2753 | ||
2754 | |||
2755 | /* Terratec Cinergy Hybrid T USB XS | ||
2756 | Devin Heitmueller <dheitmueller@linuxtv.org> | ||
2757 | */ | ||
2758 | IR_KEYTAB_TYPE ir_codes_terratec_cinergy_xs[IR_KEYTAB_SIZE] = { | ||
2759 | [0x41] = KEY_HOME, | ||
2760 | [0x01] = KEY_POWER, | ||
2761 | [0x42] = KEY_MENU, | ||
2762 | [0x02] = KEY_1, | ||
2763 | [0x03] = KEY_2, | ||
2764 | [0x04] = KEY_3, | ||
2765 | [0x43] = KEY_SUBTITLE, | ||
2766 | [0x05] = KEY_4, | ||
2767 | [0x06] = KEY_5, | ||
2768 | [0x07] = KEY_6, | ||
2769 | [0x44] = KEY_TEXT, | ||
2770 | [0x08] = KEY_7, | ||
2771 | [0x09] = KEY_8, | ||
2772 | [0x0a] = KEY_9, | ||
2773 | [0x45] = KEY_DELETE, | ||
2774 | [0x0b] = KEY_TUNER, | ||
2775 | [0x0c] = KEY_0, | ||
2776 | [0x0d] = KEY_MODE, | ||
2777 | [0x46] = KEY_TV, | ||
2778 | [0x47] = KEY_DVD, | ||
2779 | [0x49] = KEY_VIDEO, | ||
2780 | [0x4b] = KEY_AUX, | ||
2781 | [0x10] = KEY_UP, | ||
2782 | [0x11] = KEY_LEFT, | ||
2783 | [0x12] = KEY_OK, | ||
2784 | [0x13] = KEY_RIGHT, | ||
2785 | [0x14] = KEY_DOWN, | ||
2786 | [0x0f] = KEY_EPG, | ||
2787 | [0x16] = KEY_INFO, | ||
2788 | [0x4d] = KEY_BACKSPACE, | ||
2789 | [0x1c] = KEY_VOLUMEUP, | ||
2790 | [0x4c] = KEY_PLAY, | ||
2791 | [0x1b] = KEY_CHANNELUP, | ||
2792 | [0x1e] = KEY_VOLUMEDOWN, | ||
2793 | [0x1d] = KEY_MUTE, | ||
2794 | [0x1f] = KEY_CHANNELDOWN, | ||
2795 | [0x17] = KEY_RED, | ||
2796 | [0x18] = KEY_GREEN, | ||
2797 | [0x19] = KEY_YELLOW, | ||
2798 | [0x1a] = KEY_BLUE, | ||
2799 | [0x58] = KEY_RECORD, | ||
2800 | [0x48] = KEY_STOP, | ||
2801 | [0x40] = KEY_PAUSE, | ||
2802 | [0x54] = KEY_LAST, | ||
2803 | [0x4e] = KEY_REWIND, | ||
2804 | [0x4f] = KEY_FASTFORWARD, | ||
2805 | [0x5c] = KEY_NEXT, | ||
2806 | }; | ||
2807 | EXPORT_SYMBOL_GPL(ir_codes_terratec_cinergy_xs); | ||
2808 | |||
2754 | /* EVGA inDtube | 2809 | /* EVGA inDtube |
2755 | Devin Heitmueller <devin.heitmueller@gmail.com> | 2810 | Devin Heitmueller <devin.heitmueller@gmail.com> |
2756 | */ | 2811 | */ |
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 02e24411b134..66c377683708 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -870,6 +870,8 @@ struct em28xx_board em28xx_boards[] = { | |||
870 | .decoder = EM28XX_TVP5150, | 870 | .decoder = EM28XX_TVP5150, |
871 | .has_dvb = 1, | 871 | .has_dvb = 1, |
872 | .dvb_gpio = default_digital, | 872 | .dvb_gpio = default_digital, |
873 | .ir_codes = ir_codes_terratec_cinergy_xs, | ||
874 | .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, /* NEC IR */ | ||
873 | .input = { { | 875 | .input = { { |
874 | .type = EM28XX_VMUX_TELEVISION, | 876 | .type = EM28XX_VMUX_TELEVISION, |
875 | .vmux = TVP5150_COMPOSITE0, | 877 | .vmux = TVP5150_COMPOSITE0, |
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index 9dcb632f6083..922bad37deec 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -163,6 +163,7 @@ extern IR_KEYTAB_TYPE ir_codes_kworld_plus_tv_analog[IR_KEYTAB_SIZE]; | |||
163 | extern IR_KEYTAB_TYPE ir_codes_kaiomy[IR_KEYTAB_SIZE]; | 163 | extern IR_KEYTAB_TYPE ir_codes_kaiomy[IR_KEYTAB_SIZE]; |
164 | extern IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE]; | 164 | extern IR_KEYTAB_TYPE ir_codes_dm1105_nec[IR_KEYTAB_SIZE]; |
165 | extern IR_KEYTAB_TYPE ir_codes_evga_indtube[IR_KEYTAB_SIZE]; | 165 | extern IR_KEYTAB_TYPE ir_codes_evga_indtube[IR_KEYTAB_SIZE]; |
166 | extern IR_KEYTAB_TYPE ir_codes_terratec_cinergy_xs[IR_KEYTAB_SIZE]; | ||
166 | 167 | ||
167 | #endif | 168 | #endif |
168 | 169 | ||