[PATCH] cx88: IR Support for Winfast DTV1000 T

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

 



Hello,

Can someone please verify that this patch works for them. Included is
and update to the keys for the Y04G0004 controller that came in the box
with my Winfast DTV1000 T (purchased in Australia). The patch was
written against 2.6.17.8 vanilla.

Regards,
Adam Zammit


---

--- a/linux/drivers/media/common/ir-keymaps.c	2006-08-07 14:18:54.000000000 +1000
+++ b/linux/drivers/media/common/ir-keymaps.c	2006-08-17 01:04:28.000000000 +1000
@@ -1285,7 +1285,25 @@
 	[ 0x23 ] = KEY_PLAYPAUSE,
 	[ 0x24 ] = KEY_NEXT,
 	[ 0x26 ] = KEY_STOP,
-	[ 0x27 ] = KEY_RECORD
+	[ 0x27 ] = KEY_RECORD,
+
+	/* Added by Adam for Y04G0004 Control */
+	[ 0x36 ] = KEY_TV,
+	[ 0x37 ] = KEY_RADIO,
+	[ 0x38 ] = KEY_DVD,
+	[ 0x29 ] = KEY_EXIT,
+	[ 0x30 ] = KEY_CHANNEL,
+	[ 0x2f ] = KEY_MENU,
+	[ 0x31 ] = KEY_EPG,
+	[ 0x32 ] = KEY_CHANNEL,
+	[ 0x33 ] = KEY_LANGUAGE,
+	[ 0x1e ] = KEY_VIDEO,
+	[ 0x1b ] = KEY_AUDIO,
+	[ 0x16 ] = KEY_SUBTITLE,
+	[ 0x11 ] = KEY_BACK,
+	[ 0x28 ] = KEY_SHUFFLE,
+	[ 0x25 ] = KEY_F23,
+	[ 0x2a ] = KEY_MODE
 };
 
 EXPORT_SYMBOL_GPL(ir_codes_winfast);
--- a/linux/drivers/media/video/cx88/cx88-cards.c	2006-08-07 14:18:54.000000000 +1000
+++ b/linux/drivers/media/video/cx88/cx88-cards.c	2006-08-17 01:05:13.000000000 +1000
@@ -865,6 +865,10 @@
 		.input          = {{
 			.type   = CX88_VMUX_DVB,
 			.vmux   = 0,
+			.gpio0	= 0x00F5e700,
+			.gpio1  = 0x00003004,
+			.gpio2  = 0x00F5e700,
+			.gpio3  = 0x02000000,
 		}},
 		.dvb            = 1,
 	},
--- a/linux/drivers/media/video/cx88/cx88-input.c	2006-08-07 14:18:54.000000000 +1000
+++ b/linux/drivers/media/video/cx88/cx88-input.c	2006-08-17 01:04:56.000000000 +1000
@@ -173,6 +173,7 @@
 		ir->sampling = 1;
 		break;
 	case CX88_BOARD_WINFAST2000XP_EXPERT:
+	case CX88_BOARD_WINFAST_DTV1000:
 		ir_codes = ir_codes_winfast;
 		ir->gpio_addr = MO_GP0_IO;
 		ir->mask_keycode = 0x8f8;
_______________________________________________
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