The patch number 10515 was added via Mauro Carvalho Chehab <mche...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Mauro Carvalho Chehab  <mche...@redhat.com>
Adds IR table for the IR provided with this board and includes it at


Kaiomy entry.

Thanks to Peter Senna Tschudin <peter.se...@gmail.com> for borrow me one
of those devices.

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>


---

 linux/drivers/media/common/ir-keymaps.c         |   49 ++++++++++++++++
 linux/drivers/media/video/em28xx/em28xx-cards.c |    1 
 linux/include/media/ir-common.h                 |    1 
 3 files changed, 51 insertions(+)

diff -r 74fd56daf383 -r 844767f3721e linux/drivers/media/common/ir-keymaps.c
--- a/linux/drivers/media/common/ir-keymaps.c   Wed Feb 11 15:13:20 2009 -0200
+++ b/linux/drivers/media/common/ir-keymaps.c   Wed Feb 11 15:15:14 2009 -0200
@@ -2502,6 +2502,55 @@ IR_KEYTAB_TYPE ir_codes_kworld_plus_tv_a
 };
 EXPORT_SYMBOL_GPL(ir_codes_kworld_plus_tv_analog);
 
+/* Kaiomy TVnPC U2
+   Mauro Carvalho Chehab <mche...@infradead.org>
+ */
+IR_KEYTAB_TYPE ir_codes_kaiomy[IR_KEYTAB_SIZE] = {
+       [0x43] = KEY_POWER2,
+       [0x01] = KEY_LIST,
+       [0x0b] = KEY_ZOOM,
+       [0x03] = KEY_POWER,
+
+       [0x04] = KEY_1,
+       [0x08] = KEY_2,
+       [0x02] = KEY_3,
+
+       [0x0f] = KEY_4,
+       [0x05] = KEY_5,
+       [0x06] = KEY_6,
+
+       [0x0c] = KEY_7,
+       [0x0d] = KEY_8,
+       [0x0a] = KEY_9,
+
+       [0x11] = KEY_0,
+
+       [0x09] = KEY_CHANNELUP,
+       [0x07] = KEY_CHANNELDOWN,
+
+       [0x0e] = KEY_VOLUMEUP,
+       [0x13] = KEY_VOLUMEDOWN,
+
+       [0x10] = KEY_HOME,
+       [0x12] = KEY_ENTER,
+
+       [0x14] = KEY_RECORD,
+       [0x15] = KEY_STOP,
+       [0x16] = KEY_PLAY,
+       [0x17] = KEY_MUTE,
+
+       [0x18] = KEY_UP,
+       [0x19] = KEY_DOWN,
+       [0x1a] = KEY_LEFT,
+       [0x1b] = KEY_RIGHT,
+
+       [0x1c] = KEY_RED,
+       [0x1d] = KEY_GREEN,
+       [0x1e] = KEY_YELLOW,
+       [0x1f] = KEY_BLUE,
+};
+EXPORT_SYMBOL_GPL(ir_codes_kaiomy);
+
 IR_KEYTAB_TYPE ir_codes_avermedia_a16d[IR_KEYTAB_SIZE] = {
        [0x20] = KEY_LIST,
        [0x00] = KEY_POWER,
diff -r 74fd56daf383 -r 844767f3721e 
linux/drivers/media/video/em28xx/em28xx-cards.c
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c   Wed Feb 11 15:13:20 
2009 -0200
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c   Wed Feb 11 15:15:14 
2009 -0200
@@ -1325,6 +1325,7 @@ struct em28xx_board em28xx_boards[] = {
                .mts_firmware = 1,
                .decoder      = EM28XX_TVP5150,
                .tuner_gpio   = default_tuner_gpio,
+               .ir_codes     = ir_codes_kaiomy,
                .input          = { {
                        .type     = EM28XX_VMUX_TELEVISION,
                        .vmux     = TVP5150_COMPOSITE0,
diff -r 74fd56daf383 -r 844767f3721e linux/include/media/ir-common.h
--- a/linux/include/media/ir-common.h   Wed Feb 11 15:13:20 2009 -0200
+++ b/linux/include/media/ir-common.h   Wed Feb 11 15:15:14 2009 -0200
@@ -159,6 +159,7 @@ extern IR_KEYTAB_TYPE ir_codes_msi_tvany
 extern IR_KEYTAB_TYPE ir_codes_msi_tvanywhere_plus[IR_KEYTAB_SIZE];
 extern IR_KEYTAB_TYPE ir_codes_ati_tv_wonder_hd_600[IR_KEYTAB_SIZE];
 extern IR_KEYTAB_TYPE ir_codes_kworld_plus_tv_analog[IR_KEYTAB_SIZE];
+extern IR_KEYTAB_TYPE ir_codes_kaiomy[IR_KEYTAB_SIZE];
 #endif
 
 /*


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/844767f3721e2d0690491dd7586ae7056e305a45

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to