[PATCH] Add proper support for nova-t grey remote

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

 



Hi folks,

This patch adds proper support for the grey remote control (model A415-HPG) supplied with the hauppauge pci dvb nova-t and the usb dvb nova-t. It should apply cleanly against the mercurial source.

Any chances of this finding its way into the repository ?

Hope someone finds this useful !

Lee Mitchell
diff -urNp v4l-dvb-clean/linux/drivers/media/common/ir-keymaps.c v4l-dvb/linux/drivers/media/common/ir-keymaps.c
--- v4l-dvb-clean/linux/drivers/media/common/ir-keymaps.c	2006-12-23 10:57:47.000000000 +0000
+++ v4l-dvb/linux/drivers/media/common/ir-keymaps.c	2006-12-26 11:18:14.000000000 +0000
@@ -1704,3 +1704,81 @@ IR_KEYTAB_TYPE ir_codes_asus_pc39[IR_KEY
 };
 
 EXPORT_SYMBOL_GPL(ir_codes_asus_pc39);
+
+/* ---------------------------------------------------------------------- */
+
+/* Hauppauge WinTV PCI Nova-T DVB-T Remote */
+IR_KEYTAB_TYPE ir_codes_nova_t[IR_KEYTAB_SIZE] = {
+	[ 0x00 ] = BTN_0,  			// '0'
+	[ 0x01 ] = BTN_1,         	// '1'
+	[ 0x02 ] = BTN_2,         	// '2'
+	[ 0x03 ] = BTN_3,         	// '3'
+	[ 0x04 ] = BTN_4,         	// '4'
+	[ 0x05 ] = BTN_5,         	// '5'
+	[ 0x06 ] = BTN_6,         	// '6'
+	[ 0x07 ] = BTN_7,         	// '7'
+	[ 0x08 ] = BTN_8,         	// '8'
+	[ 0x09 ] = BTN_9,         	// '9'
+	[ 0x0a ] = KEY_KPASTERISK,  // '*/Text'
+	[ 0x0b ] = KEY_RED,    		// 'red'
+	[ 0x0c ] = KEY_RADIO,    	// 'radio'
+	[ 0x0d ] = KEY_MENU,        // 'menu'
+	[ 0x0e ] = KEY_KPSLASH,    	// '#/Sub/CC'
+	[ 0x0f ] = KEY_MUTE,        // 'mute'
+
+	[ 0x10 ] = KEY_VOLUMEUP,  	// 'volume +'
+	[ 0x11 ] = KEY_VOLUMEDOWN,  // 'volume -'
+	[ 0x12 ] = KEY_PREVIOUS,    // 'Prev.Ch'
+	[ 0x13 ] = KEY_RESERVED,    // ''
+
+	[ 0x14 ] = BTN_FORWARD,		// 'up'
+	[ 0x15 ] = BTN_BACK, 		// 'down'
+	[ 0x16 ] = BTN_LEFT,    	// 'left'
+	[ 0x17 ] = BTN_RIGHT, 		// 'right'
+
+	[ 0x18 ] = KEY_VIDEO,    	// 'videos'
+	[ 0x19 ] = KEY_MP3, 		// 'music'
+	[ 0x1a ] = KEY_CAMERA,   	// 'Pictures'
+	[ 0x1b ] = KEY_EPG,    		// 'Guide'
+	[ 0x1c ] = KEY_TV,        	// 'TV'
+	[ 0x1d ] = KEY_RESERVED,    // ''
+	[ 0x1e ] = KEY_LAST, 		// '->|'
+	[ 0x1f ] = KEY_EXIT,  		// 'ESC'
+
+	[ 0x20 ] = KEY_CHANNELUP,   // 'channel -'
+	[ 0x21 ] = KEY_CHANNELDOWN,	// 'channel +'
+	[ 0x22 ] = KEY_RESERVED,    // ''
+	[ 0x23 ] = KEY_RESERVED,    // ''
+	[ 0x24 ] = KEY_FIRST,   	// '|<-'
+	[ 0x25 ] = KEY_OK,    		// 'Ok'
+	[ 0x26 ] = KEY_RESERVED,    // ''
+	[ 0x27 ] = KEY_RESERVED,    // ''
+	[ 0x28 ] = KEY_RESERVED,    // ''
+	[ 0x29 ] = KEY_BLUE,    	// 'blue'
+	[ 0x2a ] = KEY_RESERVED,    // ''
+	[ 0x2b ] = KEY_RESERVED,    // ''
+	[ 0x2c ] = KEY_RESERVED,    // ''
+	[ 0x2d ] = KEY_RESERVED,    // ''
+	[ 0x2e ] = KEY_GREEN,    	// 'green'
+	[ 0x2f ] = KEY_RESERVED,    // ''
+
+	[ 0x30 ] = KEY_PAUSE,    	// 'pause'
+	[ 0x31 ] = KEY_RESERVED,    // ''
+	[ 0x32 ] = KEY_REWIND,    	// 'rewind'
+	[ 0x33 ] = KEY_RESERVED,    // ''
+	[ 0x34 ] = KEY_FASTFORWARD,	// 'fast forward'
+	[ 0x35 ] = KEY_PLAY,  		// 'play'
+	[ 0x36 ] = KEY_STOP,    	// 'stop'
+	[ 0x37 ] = KEY_RECORD,    	// 'record'
+	[ 0x38 ] = KEY_YELLOW,    	// 'yellow'
+	[ 0x39 ] = KEY_RESERVED,    // ''
+	[ 0x3a ] = KEY_RESERVED,    // ''
+	[ 0x3b ] = KEY_HOME,    	// 'Go/Home'
+	[ 0x3c ] = KEY_RESERVED,    // ''
+	[ 0x3d ] = KEY_POWER,    	// 'power'
+	[ 0x3e ] = KEY_RESERVED,    // ''
+	[ 0x3f ] = KEY_RESERVED,    // ''
+
+};
+
+EXPORT_SYMBOL_GPL(ir_codes_nova_t);
diff -urNp v4l-dvb-clean/linux/drivers/media/video/cx88/cx88-input.c v4l-dvb/linux/drivers/media/video/cx88/cx88-input.c
--- v4l-dvb-clean/linux/drivers/media/video/cx88/cx88-input.c	2006-12-23 10:57:51.000000000 +0000
+++ v4l-dvb/linux/drivers/media/video/cx88/cx88-input.c	2006-12-26 11:18:38.000000000 +0000
@@ -231,7 +231,6 @@ int cx88_ir_init(struct cx88_core *core,
 		ir->sampling = 0xeb04; /* address */
 		break;
 	case CX88_BOARD_HAUPPAUGE:
-	case CX88_BOARD_HAUPPAUGE_DVB_T1:
 	case CX88_BOARD_HAUPPAUGE_NOVASE2_S1:
 	case CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1:
 	case CX88_BOARD_HAUPPAUGE_HVR1100:
@@ -241,6 +240,11 @@ int cx88_ir_init(struct cx88_core *core,
 		ir_type = IR_TYPE_RC5;
 		ir->sampling = 1;
 		break;
+	case CX88_BOARD_HAUPPAUGE_DVB_T1:
+		ir_codes = ir_codes_nova_t;
+		ir_type = IR_TYPE_RC5;
+		ir->sampling = 1;
+		break;
 	case CX88_BOARD_WINFAST_DTV2000H:
 		ir_codes = ir_codes_winfast;
 		ir->gpio_addr = MO_GP0_IO;
diff -urNp v4l-dvb-clean/linux/include/media/ir-common.h v4l-dvb/linux/include/media/ir-common.h
--- v4l-dvb-clean/linux/include/media/ir-common.h	2006-12-23 10:57:55.000000000 +0000
+++ v4l-dvb/linux/include/media/ir-common.h	2006-12-26 11:19:03.000000000 +0000
@@ -141,6 +141,7 @@ extern IR_KEYTAB_TYPE ir_codes_norwood[I
 extern IR_KEYTAB_TYPE ir_codes_proteus_2309[IR_KEYTAB_SIZE];
 extern IR_KEYTAB_TYPE ir_codes_budget_ci_old[IR_KEYTAB_SIZE];
 extern IR_KEYTAB_TYPE ir_codes_asus_pc39[IR_KEYTAB_SIZE];
+extern IR_KEYTAB_TYPE ir_codes_nova_t[IR_KEYTAB_SIZE];
 
 #endif
 
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

  Powered by Linux