Leadtek Winfast DTV-1000S remote control support

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

 



Hi,
    I've been using the testing drivers for the dtv 1000s and they
have been working great, there was no remote control support however
so after a bit of messing around I managed to patch the files and get
my remote working. The patch is below, but i'm new to the mailing list
and patches and the like so not sure if this is useful or correct, but
it works for me so I thought I would contribute it.

Cheers

diff -Naur dtv1000s-orig/linux/drivers/media/common/ir-keymaps.c
dtv1000s-remote/linux/drivers/media/common/ir-keymaps.c
--- dtv1000s-orig/linux/drivers/media/common/ir-keymaps.c	2009-10-07
21:27:39.315700245 +1100
+++ dtv1000s-remote/linux/drivers/media/common/ir-keymaps.c	2009-10-07
21:27:59.727200476 +1100
@@ -1630,6 +1630,7 @@
 	[ 0x37 ] = KEY_RADIO,         /* FM */
 	[ 0x38 ] = KEY_DVD,

+	[ 0x1a ] = KEY_MODE,		/* change to MCE mode on Y04G0051*/
 	[ 0x3e ] = KEY_F21,           /* MCE +VOL, on Y04G0033 */
 	[ 0x3a ] = KEY_F22,           /* MCE -VOL, on Y04G0033 */
 	[ 0x3b ] = KEY_F23,           /* MCE +CH,  on Y04G0033 */
diff -Naur dtv1000s-orig/linux/drivers/media/video/saa7134/saa7134-cards.c
dtv1000s-remote/linux/drivers/media/video/saa7134/saa7134-cards.c
--- dtv1000s-orig/linux/drivers/media/video/saa7134/saa7134-cards.c	2009-06-20
05:22:30.000000000 +1000
+++ dtv1000s-remote/linux/drivers/media/video/saa7134/saa7134-cards.c	2009-10-07
21:23:23.243700429 +1100
@@ -6638,6 +6638,7 @@
 	case SAA7134_BOARD_REAL_ANGEL_220:
 	case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG:
 	case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS:
+	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
 		dev->has_remote = SAA7134_REMOTE_GPIO;
 		break;
 	case SAA7134_BOARD_FLYDVBS_LR300:
diff -Naur dtv1000s-orig/linux/drivers/media/video/saa7134/saa7134-input.c
dtv1000s-remote/linux/drivers/media/video/saa7134/saa7134-input.c
--- dtv1000s-orig/linux/drivers/media/video/saa7134/saa7134-input.c	2009-06-20
05:22:30.000000000 +1000
+++ dtv1000s-remote/linux/drivers/media/video/saa7134/saa7134-input.c	2009-10-07
21:24:32.555700167 +1100
@@ -605,6 +605,12 @@
 		mask_keycode = 0x7f;
 		polling = 40; /* ms */
 		break;
+	case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S:
+		ir_codes     = ir_codes_winfast;
+		mask_keycode = 0x5f00;
+		mask_keyup = 0x020000;
+		polling      = 50; // ms
+		break;
 	}
 	if (NULL == ir_codes) {
 		printk("%s: Oops: IR config error [card=%d]\n",
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux