Re: [PATCH] repeating remote control keys on Compro VideoMate DVB-T300
- Date: Sat, 3 May 2008 14:00:38 +0200
- From: "Youri Matthys" <yourimatthys@xxxxxxxxx>
- Subject: Re: [PATCH] repeating remote control keys on Compro VideoMate DVB-T300
James,
After much fiddling around and searching the net I've finally resolved the
problem and added it to your patch. With your permission I would like to
send your patch to the v4l devs so the code can be integrated.
Kind regards, Youri
diff -r 27b2c6a80826 linux/drivers/media/video/saa7134/saa7134-input.c
--- a/linux/drivers/media/video/saa7134/saa7134-input.c Fri Nov 30 18:27:26
2007 +0200 +++ b/linux/drivers/media/video/saa7134/saa7134-input.c Sun Dec
02 23:08:43 2007 +1100
@@ -76,6 +76,12 @@ static int build_key(struct saa7134_dev
}
/* rising SAA7134_GPIO_GPRESCAN reads the status */
saa_clearb(SAA7134_GPIO_GPMODE3,SAA7134_GPIO_GPRESCAN);
+ /* eliminate repeating keys issue on some boards*/
+ switch (dev->board) {
+ case SAA7134_BOARD_VIDEOMATE_DVBT_200:
+ saa_clearb(SAA7134_GPIO_GPMODE3,SAA7134_GPIO_GPRESCAN);
+ break;
+ }
saa_setb(SAA7134_GPIO_GPMODE3,SAA7134_GPIO_GPRESCAN);
gpio = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
@@ -324,6 +330,7 @@ int saa7134_input_init1(struct saa7134_dev
ir_codes = ir_codes_videomate_tv_pvr;
mask_keycode = 0x003F00;
mask_keyup = 0x040000;
+ polling = 50; // ms
break;
case SAA7134_BOARD_FLYDVBS_LR300:
case SAA7134_BOARD_FLYDVBT_LR301:
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list