This Patch adds support for the IR interface found on the Avermedia Super 007 card.
This card uses the NEC RC5 IR protocol - i2c scan and gpio debug couldn't find the IR port.
The remote is a combinational keypad, meaning - 2 is also UP arrow function.
The 'Teletext'. 'Power', 'Channel+' and 'Skip' Function share the same GPIO code. I've prioritized 'Channel+' and the 'Skip' function. Hopefully a workaround will be developed.
The remote is fully usable.
Remember to use the irrecord to create a mapping for this remote!
Signed-off-by: David Bentham
_________________________________________________________________
Win New York holidays with Kellogg’s & Live Search
http://clk.atdmt.com/UKM/go/111354033/direct/01/
diff -r 979d14edeb2e linux/drivers/media/common/ir-keymaps.c
--- a/linux/drivers/media/common/ir-keymaps.c Sat Oct 04 21:37:36 2008 -0300
+++ b/linux/drivers/media/common/ir-keymaps.c Sun Oct 05 09:24:43 2008 +0100
@@ -153,6 +153,53 @@ IR_KEYTAB_TYPE ir_codes_avermedia_m135a[
[0x1b] = KEY_STOP,
};
EXPORT_SYMBOL_GPL(ir_codes_avermedia_m135a);
+
+/* David Bentham <db260179@xxxxxxxxxxx */
+/*
+ * FIXME: Unable to use keycodes?
+ *
+ * [ 0x03 ] = KEY_TEXT, // 'teletext'
+ * [ 0x00 ] = KEY_POWER, // 'power'
+ *
+ *
+ *
+ */
+IR_KEYTAB_TYPE ir_codes_avermedia_super007[IR_KEYTAB_SIZE] = {
+
+ [0x11] = KEY_0, /* 0 */ /* enter */
+ [0x05] = KEY_1, /* 1 */
+ [0x06] = KEY_2, /* 2 */ /* up arrow */
+ [0x07] = KEY_3, /* 3 */
+ [0x09] = KEY_4, /* 4 */ /* left arrow */
+ [0x0a] = KEY_5, /* 5 */
+ [0x0b] = KEY_6, /* 6 */ /* right arrow */
+ [0x0d] = KEY_7, /* 7 */
+ [0x0e] = KEY_8, /* 8 */ /* down arrow */
+ [0x0f] = KEY_9, /* 9 */
+
+ [0x01] = KEY_LIST, /* source */
+ [0x08] = KEY_AUDIO, /* audio */
+ [0x0c] = KEY_ZOOM, /* full screen */
+ [0x12] = KEY_VIDEO, /* display */
+ [0x10] = KEY_INFO, /* 16ch preview */
+ [0x1d] = KEY_REWIND, /* 'backward << */
+ [0x1c] = KEY_FASTFORWARD, /* forward >> */
+ [0x14] = KEY_MUTE, /* mute */
+ [0x19] = KEY_RECORD, /* record */
+ [0x1a] = KEY_PAUSE, /* pause */
+ [0x1b] = KEY_STOP, /* stop */
+ [0x18] = KEY_PLAY, /* play */
+ [0x02] = KEY_CHANNELDOWN, /* channel - */
+ [0x03] = KEY_CHANNELUP, /* channel + */ /* Teletext FIXME: */
+ [0x1e] = KEY_VOLUMEDOWN, /* volume - */
+ [0x1f] = KEY_VOLUMEUP, /* volume + */
+ [0x00] = KEY_NEXT, /* skip */ /* Power FIXME: */
+ [0x01] = KEY_PREVIOUS, /* replay */
+ [0x04] = KEY_EPG, /* epg */
+ [0x1a] = KEY_ARCHIVE, /* timeshift */
+};
+EXPORT_SYMBOL_GPL(ir_codes_avermedia_super007);
+
/* Attila Kondoros <attila.kondoros@xxxxxxxxx> */
IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE] = {
diff -r 979d14edeb2e linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Sat Oct 04 21:37:36 2008 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Sun Oct 05 09:24:43 2008 +0100
@@ -3703,8 +3703,9 @@ struct saa7134_board saa7134_boards[] =
.radio_addr = ADDR_UNSET,
.tuner_config = 0,
.mpeg = SAA7134_MPEG_DVB,
+ .gpiomask = 0x0203800,
.inputs = {{
- .name = name_tv, /* FIXME: analog tv untested */
+ .name = name_tv, /* DVB card only */
.vmux = 1,
.amux = TV,
.tv = 1,
@@ -5941,6 +5942,7 @@ int saa7134_board_init1(struct saa7134_d
case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
case SAA7134_BOARD_AVERMEDIA_777:
case SAA7134_BOARD_AVERMEDIA_M135A:
+ case SAA7134_BOARD_AVERMEDIA_SUPER_007:
/* case SAA7134_BOARD_SABRENT_SBTTVFM: */ /* not finished yet */
case SAA7134_BOARD_VIDEOMATE_TV_PVR:
case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
diff -r 979d14edeb2e linux/drivers/media/video/saa7134/saa7134-input.c
--- a/linux/drivers/media/video/saa7134/saa7134-input.c Sat Oct 04 21:37:36 2008 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-input.c Sun Oct 05 09:24:43 2008 +0100
@@ -407,6 +407,12 @@ int saa7134_input_init1(struct saa7134_d
mask_keycode = 0x00013f;
nec_gpio = 1;
break;
+ case SAA7134_BOARD_AVERMEDIA_SUPER_007:
+ ir_codes = ir_codes_avermedia_super007;
+ mask_keycode = 0x00003f;
+ mask_keydown = 0x0040000;
+ nec_gpio = 1;
+ break;
case SAA7134_BOARD_AVERMEDIA_777:
case SAA7134_BOARD_AVERMEDIA_A16AR:
ir_codes = ir_codes_avermedia;
diff -r 979d14edeb2e linux/include/media/ir-common.h
--- a/linux/include/media/ir-common.h Sat Oct 04 21:37:36 2008 -0300
+++ b/linux/include/media/ir-common.h Sun Oct 05 09:24:43 2008 +0100
@@ -111,6 +111,7 @@ extern IR_KEYTAB_TYPE ir_codes_avermedia
extern IR_KEYTAB_TYPE ir_codes_avermedia[IR_KEYTAB_SIZE];
extern IR_KEYTAB_TYPE ir_codes_avermedia_dvbt[IR_KEYTAB_SIZE];
extern IR_KEYTAB_TYPE ir_codes_avermedia_m135a[IR_KEYTAB_SIZE];
+extern IR_KEYTAB_TYPE ir_codes_avermedia_super007[IR_KEYTAB_SIZE];
extern IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE];
extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE];
extern IR_KEYTAB_TYPE ir_codes_pixelview_new[IR_KEYTAB_SIZE];
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb